From patchwork Wed Oct 19 08:22:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4520 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp203312wrs; Wed, 19 Oct 2022 01:42:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pdQtvL+77RkfQUwInt5lD9y2sVUs6PVcJ+KPVukxoBshmMuMmls0q6r/95q6RxdxVaOwm X-Received: by 2002:a17:906:dac8:b0:741:545b:796a with SMTP id xi8-20020a170906dac800b00741545b796amr5668680ejb.240.1666168969552; Wed, 19 Oct 2022 01:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666168969; cv=none; d=google.com; s=arc-20160816; b=ICfSUBM8HQVL7qAfTDAQd2NbSvRnOzT3rjUSWxr/DrevdjjVxBn/ztfcW6Pomn/A1c vu6XhOiaTdzVgWkQyYvN6Bt0OSl8EMSHE+Wd3KnDofS56rhaZ5WMTCYFMe7Tbx1i4xiJ fpUCMAlm3VdkbNE7cFD/M3ylEyyj3//CseaWL0lPBWghlRnPu96l+1f6B/pe9YbvU7X2 baegFAGw3BZBrBimQR5fH3vLjB0sr69kyxed5UTNHn8WhCAxPAl1PrgB800bu6FLhrpA G5aubp6dTpSOPaEj3nyF1AXG8yuwYkRKUM+3mb/e2RmO1MuxK82iVHEJL/h2HXv1vkEp b7KQ== 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=aQxOtHSY1t+6SHHgaTkvbiDrbUOwuhBH5nMA0GGh7bP71YntkykctVzbr6uNbqQN47 saebGuNg4xFZ48+oG3cDEyl5VyPsnwlvLciw8U9Ebl1LA7p7FRtMO4RnmQODES82M8BJ OtaXYFrP7RlgetMQ3K0EvnDLUhzygU3KRbfZDeCme0r6vSbAM7ubjjksn2DW0ykbmlTt wFSKMhx50wBJC+CZT2fTt9zpWiAc2IkaNHtOFbafQRwUwggueWvQUDZkcgzMWmrsaVYS +APBs5jPrl0/KiqUoms9VjbpWQw+4AES3n64wZKXXToHk9B3Ozh0k4dAdcxYJAsFYriU 1QqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pzx7qZ1F; 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 dn15-20020a17090794cf00b007919a242731si5449811ejc.95.2022.10.19.01.42.23; Wed, 19 Oct 2022 01:42:49 -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=Pzx7qZ1F; 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 S231135AbiJSIl7 (ORCPT + 99 others); Wed, 19 Oct 2022 04:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbiJSIko (ORCPT ); Wed, 19 Oct 2022 04:40:44 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91BC3816AB; Wed, 19 Oct 2022 01:39:07 -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 sin.source.kernel.org (Postfix) with ESMTPS id 64D77CE20DB; Wed, 19 Oct 2022 08:39:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A32FBC433D6; Wed, 19 Oct 2022 08:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666168741; bh=lVh1oP4UqEge0pFZJpJr/ff3E2QK73mfpro3qwWesks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pzx7qZ1FKnaVb+FZZL8BkCUVhEdy/JFzDLY5kk5ODpBdK1jQUjj8V5KaTQ48Ui1co REizR/ch8P9jU8acN/4+v5Ziftf5nQIikm7Ho1yRtcQRWytxooS/nTqCGM05yLQYwm pYH+LrT9v4MZ24DpG0psrU+IUh2w2HJJqCSLmGV0= 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 6.0 039/862] mmc: sdhci-sprd: Fix minimum clock limit Date: Wed, 19 Oct 2022 10:22:06 +0200 Message-Id: <20221019083251.728627024@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747104793095489351?= X-GMAIL-MSGID: =?utf-8?q?1747104793095489351?= 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,