From patchwork Mon Oct 24 11:28:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8868 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp433185wru; Mon, 24 Oct 2022 05:48:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WAj6G+hfe3THE5MvJv33STOnOk0rNkKbKYWogYS7nSWH0Eb4SalfVOCWl03UggENBQSUf X-Received: by 2002:a05:6a00:b54:b0:566:917:e57e with SMTP id p20-20020a056a000b5400b005660917e57emr33206425pfo.26.1666615726053; Mon, 24 Oct 2022 05:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615726; cv=none; d=google.com; s=arc-20160816; b=ZK3pk38OcE2Ex4ENhnAoluw9+lYQov8U0GQobO+Y7AS9GsRTBurcXAe4sjFI/SBmaq KsWGBxzvWG2QzxIw17CbS5cxo5r4syLi0k9Ny9TCCTObgJzfJMScCaXAyv+bHNYLKJ3k DKcULhI+gE5bu4QXVte8rw5w21nFH+jf9n5cV7BL13D6MSwwAU85okLx++viGmpzW+pD DiVB0grT/FestT5UoVjQS9RYQMylOsItVwaxD12SRyDFoyPFiOO2n6U3Pv5COjujzTa9 ceOg+MWIgkyvWsC+oespQvp6u9oY//l+H3IKp+lg6GLEFYvEAWF4dReftgXadH3Awylk T5Nw== 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=DCoMuCP189FMDQ4Ff8Rp4sHylqmaYqYx/f6zqcqiW64=; b=lShPd7iUhiAavrdsnBjmjYmGckDnqwONog9dXUFJcUDm7B1RmopT546lpjgWpK3tQZ H62b6jEEjFkwPomXb20tGAqze/RSYcP0HGkipD2an9iikccoPO2cYkLv+PE78bfYONhy UPrPUL59s15ZNFYYzfaQ90Xz3pqaI/hIZY4c2Zx892ZffNVNZYMtNG7GwBBAoybk85Tz gqXx71+RO3+KEGwEGBvGM3TxWJGqXkpWNRgTr8odYvs0kVE6VJZ8GKWFMj+JpE5C6Kku Ec4uzdnCSM/6UagxOsnyRctPdM/91VJHEiurwuND6siC7VlPAmL6Ux/UTWyGy+Zbwe++ 5Y2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zY9mTwZY; 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 d24-20020a63f258000000b0046ef21af717si7082826pgk.683.2022.10.24.05.48.32; Mon, 24 Oct 2022 05:48:46 -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=zY9mTwZY; 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 S231904AbiJXMkx (ORCPT + 99 others); Mon, 24 Oct 2022 08:40:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbiJXMhC (ORCPT ); Mon, 24 Oct 2022 08:37:02 -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 A2E1D8994A; Mon, 24 Oct 2022 05:06:17 -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 D382E612F0; Mon, 24 Oct 2022 12:05:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E350CC433C1; Mon, 24 Oct 2022 12:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613132; bh=urrhEJtct4bcw8a1xS0BclzyA+n+yNouVsNJBzE1OLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zY9mTwZYwgq1EomY6r3eQMa+2znDocgz+/K1hq5N3Sd9EtewKYPUtegt0V6w+GvZ7 v0h7mhkCIw5MULJUUSDLmeKUPw4HI4atuDY/kWEy8Muk6fF4bJ0acSDYZo9dIndr/3 dW8G7MIN0BdWWJqm9F76fiv7j9y6Lw4zOufkEDmA= 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.4 020/255] mmc: sdhci-sprd: Fix minimum clock limit Date: Mon, 24 Oct 2022 13:28:50 +0200 Message-Id: <20221024113003.109807512@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@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?1747573251519107085?= X-GMAIL-MSGID: =?utf-8?q?1747573251519107085?= 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 @@ -295,7 +295,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,