From patchwork Sat Oct 22 07:18:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7186 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1089187wrr; Sat, 22 Oct 2022 00:42:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Px10eN/0jWrWeJbUaOhnRcG0tsNcvlm5cjek/yZBFP3yyAZhO/hO8ad5hyWXeRvx/HODV X-Received: by 2002:a17:902:bc86:b0:186:5d80:f62f with SMTP id bb6-20020a170902bc8600b001865d80f62fmr15199137plb.28.1666424537862; Sat, 22 Oct 2022 00:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666424537; cv=none; d=google.com; s=arc-20160816; b=fju2AVxUfsbW6keJrVcVcWeQmpn+E/4GjXVh9veDzybQSSRhUV9VGUPbKTgMGW5vw4 WDxbA0rMxgl3AIRVgaqFeCaBLasjwR/f+p72OpDjj9kJGppZPWTGrHvcLWQD9K8DYaSm K20vHNAmT0XlgATwXx5aZBPR5bvuhAT3lx/YtFXvs602oF+k81Im5JbpTbaWdV2exqd5 3M4OnbL3lQvU4tVFrTSPrfpAd8u3ZO9nmV44/MLWVhSofcedKk4B/+iR7IXVJ57uvZ3h FzdBf2KIHOIqN+PNc47om9aLHQDzRA2wxuhaL6RmLeuzxppAF8AZvoLI1kp9c5+yxox6 DEwA== 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=Vt+YFb+bPtwxgVtxWHawy6D4lSr3RVMKh8ErEiJMb1o=; b=MuwgkcsxN99VsoSgLM8eZzUwT4W7UWj9Xv2oN3NurXd2/vRFbVKYMa6UZ+sQfNye7D EVzcOkrm1SoQwViBOveH/n3i6xdEJOG9ADefUzNqLWTKZZWnmF98ZHSGXNBiMl/Ytomi pzCTywfpRwEQQMdjJCnesdHq+5+1hXgqCMtu8HHXch8ako664hNlMTExjV8GduCAAyeZ WPJ/Tl6ZkePEdYX/OC9RIZ4+q9Xuaqz0q2FZvD1Hqe3KgwQoivtoaTwfP3eSIa3Dvl5t lZ9zNcobHAajMLQ76haUMjdGSezgF8KtPAZKmP2REPtKNvBom4gHwqx8CjebgZTHeaob niyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OrQbbhfT; 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 s14-20020a17090302ce00b0016c44b7c8c5si25592835plk.11.2022.10.22.00.42.05; Sat, 22 Oct 2022 00:42: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=OrQbbhfT; 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 S230494AbiJVHl1 (ORCPT + 99 others); Sat, 22 Oct 2022 03:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbiJVHkj (ORCPT ); Sat, 22 Oct 2022 03:40:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DB465001; Sat, 22 Oct 2022 00:38:18 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 55B1860ADC; Sat, 22 Oct 2022 07:36:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F34CC433D6; Sat, 22 Oct 2022 07:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424213; bh=lVh1oP4UqEge0pFZJpJr/ff3E2QK73mfpro3qwWesks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OrQbbhfT4vKiJph0qERXFwuqMtIJDbHoo2UYG7koaBzqr4dwLDfTcFJrmFtXH2a3m 4R5lQG6ysyvNCS57u6EZZMdUO3fQrPvgEQ8UCUxNj+mRD06JxR8aQdsdtQED/f3FiD uLrhXd3WY/A6ZG5hYRLUw7l9CAxCcUbyidEb7icw= 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.19 034/717] mmc: sdhci-sprd: Fix minimum clock limit Date: Sat, 22 Oct 2022 09:18:33 +0200 Message-Id: <20221022072421.181001786@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747372776046268510?= X-GMAIL-MSGID: =?utf-8?q?1747372776046268510?= 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 @@ -309,7 +309,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,