Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2031174rwi; Tue, 11 Oct 2022 04:03:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45Msg4ul8Rze6rdQ2TsTuEnEfHjgmU1dQgIytWXzGlbqMt9ukrO+V13ca8goA50SUJ1TpC X-Received: by 2002:a17:906:8473:b0:77b:efa8:50e4 with SMTP id hx19-20020a170906847300b0077befa850e4mr18184938ejc.250.1665486209452; Tue, 11 Oct 2022 04:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665486209; cv=none; d=google.com; s=arc-20160816; b=0TLcUXsaZOJsMPTI7UjA5YssD0wj0chkxGF+/jwe2GFiz+TFAsQ8UJJLOmz0C0D8Wk 2jS5JfDT1JBBD/T5GyMNbvN6MqoCr2P20/CjUrVQuhKYLpBk9S2CrM7jHzD/Q9TuKOt+ e0sJ3DjsaZn4gdqjCtbSJsK0W6jBBuGnK2AtkbVe/2wcQxXACi+BsYR89OzSDZQDL0RD aUS1atRAgvYVw6HLVS1TzS0If37C03jK03r+xNx5Wayj4STCtZ5EKZ2WmCCPD4nHdfmD v0CBydqXmFm+pU2puKK8BEmajriNkrWFu/bgG+brfnfvWSwrqlQK9RxxPoMz0xaNfmD0 l5og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=gE/o/W+5xXJu20wExf/jieHRuV5EEyNjRmK4KW6+ktw=; b=PFng0/OzGQ0GV+Al14zP9VlOMqDZBmZq69Iu32UYZWtO6eezr+S/KC1xbiBh7L2UbZ BghsBRMYNOT2aFVMT9P8lmgo6d8/Ix/fRgUjhaeIiQvYy2yf/NPjySMi/6E/BIA9zC/S 7RIZHNyRudvrmAu/6Vak/I7xTscfngIX/KjKu3QiAiqdsUa0+ybfvJg36IQ1qKP5LgJB H4C62oljJhpmrBGTZBaFPubvdS/gLwp0zGLuZ0BMkUSm1hnpCR9ED47nn4EEnvWiv7Af 6LU5t5RK0TP9F0wbt4Hjh6m9P5AfOayNwwEkw7PTbi40JpMe0O0+DfmTIaqy2l9JR4/l CQow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VvLEHe7o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h33-20020a0564020ea100b0045bd55b1240si7802614eda.313.2022.10.11.04.02.52; Tue, 11 Oct 2022 04:03:29 -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=@gmail.com header.s=20210112 header.b=VvLEHe7o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbiJKKtu (ORCPT + 99 others); Tue, 11 Oct 2022 06:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbiJKKtr (ORCPT ); Tue, 11 Oct 2022 06:49:47 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57251DEE0; Tue, 11 Oct 2022 03:49:45 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id h13so11722612pfr.7; Tue, 11 Oct 2022 03:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gE/o/W+5xXJu20wExf/jieHRuV5EEyNjRmK4KW6+ktw=; b=VvLEHe7oPVdDLOWYrc/tzOD7YqqCC++zntDzVeVPqO09iNuGLWfSaQVwyg2KcdNwI5 860qOWCTouO9+EeFsWHWMfxH8sPqsR3z4YrI21PKQUUXTLSJxORlB8tBe1eShtOqHF3i yb+R9wS8SXdZRu9kqP2oehOUp6GRhSCzg7zosd16bq8EI+Afh3CEZa1pXORP9VA2A9EP JjoUWL2pgtN6rSVIAmW5nchyqfxmQDG9cXHmQ7H8SbGXMtJESd8vH6ordomBSpk0YRKl CLSWfpYCnDx6Uq9oXsTb9pw9kImegmgeAI3ap2YlvO/iuzo6hXuVz5+7lQ9VJRCb0Qq9 N6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gE/o/W+5xXJu20wExf/jieHRuV5EEyNjRmK4KW6+ktw=; b=SmCtBGhjVJxF18thfDS1aMFOfyuue+COp4yNVzoP+mS6Khn8ZPfkOsHqYG2yPEH/Na DLWvl2mU6f5NDCLhsZ63bdDx+QXT/YNZJrYzVklgqf8eC6r48btoE+UbKazH441N5e5K ucm9NroLwlXzPQaccXfFj67F9/4VplK2/RX0HIcl1t9eGkkBocESX4f5FDHiqVZjAyou UiY1XJcz4/577JWolQclIRyG8lqBJqsnH2Db4XgH96m0Re+D6NZUGiRk/Hi01Dxuy0uZ pyQYcvnn/jJAwJu4BdVSSBWJMppb+OgfIoLM1BZUmTAjKth7VKa7Ii0D9CFtgkaDkY8z jFAA== X-Gm-Message-State: ACrzQf2wdXIovXzzjoOg3SEDQxw0ILQ/ELBVZy3kWhH1LJZ3wO/pz/FK Tmfu+0FMLQKVPL+9EZqdCoc= X-Received: by 2002:a62:6243:0:b0:561:748:94d1 with SMTP id w64-20020a626243000000b00561074894d1mr24622550pfb.33.1665485384827; Tue, 11 Oct 2022 03:49:44 -0700 (PDT) Received: from xm06403pcu.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 124-20020a621582000000b005621152c051sm8672786pfv.66.2022.10.11.03.49.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 03:49:44 -0700 (PDT) From: Wenchao Chen To: adrian.hunter@intel.com, ulf.hansson@linaro.org, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, megoo.tang@gmail.com, lzx.stg@gmail.com Subject: [PATCH V2] mmc: sdhci-sprd: Fix minimum clock limit Date: Tue, 11 Oct 2022 18:49:35 +0800 Message-Id: <20221011104935.10980-1-wenchao.chen666@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 From: Wenchao Chen v1 -> v2: - Address Adrian's suggestions Our controller supports 100K. During the test, it was found that mmc_rescan failed to scan the card at 400K, and did not try 300K, 200K, and 100K. After modifying the minimum clock limit to 100K, the card scan was successful Signed-off-by: Wenchao Chen Acked-by: Adrian Hunter Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller") --- drivers/mmc/host/sdhci-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 46c55ab4884c..b92a408f138d 100644 --- 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_clock(struct sdhci_host *host) 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, -- 2.17.1