From patchwork Mon Oct 24 11:26:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9717 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp545814wru; Mon, 24 Oct 2022 09:35:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NyVqiXH+y61aIlWjXxDGgZQ22R7bDnemh6VGIkhp8zhjk27PMt/ArQ3F47Zpu6NCN6E9F X-Received: by 2002:aa7:ca50:0:b0:461:9845:d9d2 with SMTP id j16-20020aa7ca50000000b004619845d9d2mr9316962edt.163.1666629317404; Mon, 24 Oct 2022 09:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666629317; cv=none; d=google.com; s=arc-20160816; b=LrizKfHMmnlCLd/PIJMoIoQ0ItOu+TR8lLTol/A3vF2up/70toeYiewLsDqqwlpQcf D3yjtWqqpKv6fzsOu6hlIMlBztX2UCw3LpBkVaq9fWcopfTWzc+hyyusaOgksy4YxHHG 3Y1S0C35ULzoDFLuZEYHkOxJEOiDgrlSY6l2kqmf75VFQ/kWwI7VGyWW0HC9HKm04YR9 BUwA+RA/TLSqGBoHsj/XOTR8QfjGEbFVOxI2/14fU777NQ2DYJPq6uIy3/WuM52p2X8X tmhREOwdfp87SGEcQvJhAQWGiMXgEFIVrDdnOTfPJvEKQD4fOBn5yy+K3aAwG8QJ0DRy NI9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vtTib18NHmjhUoN5MkbdZwJAGz7OI6+4VpLAuALtZWE=; b=uu7TnhQbinfjxfuMnhCOFTA89kVNJdw76nVStCl5PxGtK9p2EoGLGALa+FKPSNKLbY QkNwpaKOydKZcApCr2HlIHbKy/8aqRQW3XW9AenQv8XJ9yiOKmEpBDSNoX9fe77uPtPS M3IGJY1P2s3DPcP777la3ds0fQu3KScT9J004KxJxDI7Ecn7adfcwVFeBv42aOIYmXDc q8mhwa3p7TPdefcdY/Acy5W9BqnIqy+BXDBhLjbEEwp8WDftDWUGlmeIaLm7Ai73J1Od ZIMQdyWRIWLb8iJO7vcrfyZ6P0z6U9uQOZMuObO8kgyKezQE8zgDm9/86zrRkjWGjniI x7jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FP/CLo8i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z66-20020a509e48000000b0045c9dbe290csi190087ede.406.2022.10.24.09.34.53; Mon, 24 Oct 2022 09:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FP/CLo8i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232133AbiJXQSU (ORCPT + 99 others); Mon, 24 Oct 2022 12:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234133AbiJXQQU (ORCPT ); Mon, 24 Oct 2022 12:16:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5458A8CD5; Mon, 24 Oct 2022 08:03:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 71A3CB815C5; Mon, 24 Oct 2022 12:18:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE228C4314C; Mon, 24 Oct 2022 12:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613887; bh=CAaygUI3d5Iwg9TpDcUtziCnjlVX7gq+/9M0cwLO+2o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FP/CLo8icwYp7Dvg7a3uJucey3Onu+8XdIcaSXei4vFln+A7e2ObrFuxxM8YWm/Mz gPX3fjgANh6Dmjvc5WCkWhVA3ZuMvY0OTM1tgYZuI2uCwRNvsQgGYJBRFU+67Se3M+ TQOh2KkHTxnAV94jGQnAKo6lWU88oQvt3U2c9cYY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wenchao Chen , Adrian Hunter , Ulf Hansson Subject: [PATCH 5.10 022/390] mmc: sdhci-sprd: Fix minimum clock limit Date: Mon, 24 Oct 2022 13:26:59 +0200 Message-Id: <20221024113023.498588550@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747587503051906764?= X-GMAIL-MSGID: =?utf-8?q?1747587503051906764?= From: Wenchao Chen commit 6e141772e6465f937458b35ddcfd0a981b6f5280 upstream. The Spreadtrum controller supports 100KHz minimal clock rate, which means that the current value 400KHz is wrong. Unfortunately this has also lead to fail to initialize some cards, which are allowed to require 100KHz to work. So, let's fix the problem by changing the minimal supported clock rate to 100KHz. Signed-off-by: Wenchao Chen Acked-by: Adrian Hunter Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20221011104935.10980-1-wenchao.chen666@gmail.com [Ulf: Clarified to commit-message] Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -296,7 +296,7 @@ static unsigned int sdhci_sprd_get_max_c static unsigned int sdhci_sprd_get_min_clock(struct sdhci_host *host) { - return 400000; + return 100000; } static void sdhci_sprd_set_uhs_signaling(struct sdhci_host *host,