Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2289224rwi; Tue, 11 Oct 2022 07:09:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46mDOqmZjRUE/kBd3hs0j5bbjbz4Ay19ZODdBzqz0lOhfRmKey8gPA1RlTud9hejxIOpoK X-Received: by 2002:a17:90a:c250:b0:20a:e484:63aa with SMTP id d16-20020a17090ac25000b0020ae48463aamr27750063pjx.0.1665497374577; Tue, 11 Oct 2022 07:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665497374; cv=none; d=google.com; s=arc-20160816; b=yO+2QB7VQT8sFL2eRh5WkDtVD/jLReg/GQ5/+kK36M/gq3tJnJaG9vV3gTK07fPnOA zKwCvc/m75nz3DL/R7dYx01F2InK+gOSV2iopEEotXzi0hvgd+Hj7pwp3j5rKgUIwAYR zGhW31fNOMOSLJkTv2J7U5+rRBeF8FalWhhY7J4Izt5BLutlucfaxSe9+WVGytWwunQq ciw0dHpnoJvMLBO7DRhuof8qraLQ8n9ZmPdJXuVAiGwQS6KQW7MVyoO30OumyMb8uITL 1YlLd01zkOQubV30orHmUC5vCqkTQIJdObVC6DQrLCpjzKTICBOBx/yfpuXoYADvyaVb l+9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3TOgt2vEpRrLSiB3atQwtzFhnMOsulmIzIgqeIq1nk0=; b=S58hfNoIRL2ksty+CpeWGFiL1G9xgHjMPU43Dkiz/p2Sl4Vvl3ZmaRk7IkP6tozm6x t+th3sVqaX3vCq/KZpFbV0eYWVjs9aw4SOIp9TX9Nt178d3rM2V1C0ulJFHBAZwhxRUo BuBGKlTkEETheTuTOedubBvWpWsqLkAPD4AuV8P+gS8VBcFyA7d73LYurcyyjWIEJVuV Hl3kr4vsRy92tu0AOVQGWNzkqUqSEIY4y56zb26UzD5a4LtxfucOiW3TtfNE5FqLgdC7 7RWxxkNKwQ5k1Fcw4IHF0Axj79IrBlm3Khm3BPmclGB7l66HzuJJjosymK4rUapgGJLg 2tVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XSb6i3Vp; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a63ee0f000000b004403d4f1f70si14698620pgi.455.2022.10.11.07.09.18; Tue, 11 Oct 2022 07:09:34 -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=@linaro.org header.s=google header.b=XSb6i3Vp; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbiJKNvz (ORCPT + 99 others); Tue, 11 Oct 2022 09:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiJKNvw (ORCPT ); Tue, 11 Oct 2022 09:51:52 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38EAF57BED for ; Tue, 11 Oct 2022 06:51:51 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id x31-20020a17090a38a200b0020d2afec803so6205088pjb.2 for ; Tue, 11 Oct 2022 06:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3TOgt2vEpRrLSiB3atQwtzFhnMOsulmIzIgqeIq1nk0=; b=XSb6i3VpfNyWAq4vxeUCmNYS7AvXFIp/Ceze2c/cL8iQpUxCtxkVNBw2UldHR/Nb5u kwLcAWt6lHquxP8aj/eUlZ/zDkyYY7dzpIT47x/EVDoBDV4DhMrRDDxtvf2E4YZ29l+G Z5WoPgie9IxJsvL4kWnLCr9FjkgclgRSiHL+bCxKZP+lsYcjiOZihOUdqE0/rm/NBQkI CUx/bD4Un8LxSB+Gkw8W01hphPoidR8cBl3oY/Db4Lwi1K/VTMw8BPWQwP5DNwsI0QMu glgqxbm0xMb8ILcuMHWpQ9sdNmsIN+TIVUkfWvRB0nkIKHOuIhmkZiFKgBY63l9yfDb7 ig7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3TOgt2vEpRrLSiB3atQwtzFhnMOsulmIzIgqeIq1nk0=; b=un5cEiz73DVvbAoB/F3R6ECapJCaErtd0+bjd3UUYhuz9rdzZIsaawXA9MEkjngGtK 0sKa6qDEgtYkvKRN0jprnpU7ocEI+yqXZUPJ5Tpa9xD68JVRqw+2mr4Gdw7HB2CtZAfb S8RK8MtG82PsaKAyJ/SHbt5TDP6/WjeaJzX15z2hraFTgDtIxwFjl3/giHWmk3QVzMBg GtGVJigNfTUGmgOGQyeMZIql5uib29kUOMlQVUZc6w/K3klLTmAq4eMFtDN6f1u+MoAm RFxhj51zfTtfLk6n+rbXK8bUpbL7OsjOMiSH+NHMiS/cDNKUZ/rhcg5UsvDGF242uWaK oWIA== X-Gm-Message-State: ACrzQf2V49BQXN88jM5xX+afH3hRgaOKzZ34MqCJiMq8qch5FV70CQry xuPb4tNlUTFYKqz0A5CXYy+dwex2AhNqNZ1cxFPz4g== X-Received: by 2002:a17:90a:7b8c:b0:20b:1f3b:f6fd with SMTP id z12-20020a17090a7b8c00b0020b1f3bf6fdmr26702369pjc.202.1665496310708; Tue, 11 Oct 2022 06:51:50 -0700 (PDT) MIME-Version: 1.0 References: <20221011104935.10980-1-wenchao.chen666@gmail.com> In-Reply-To: <20221011104935.10980-1-wenchao.chen666@gmail.com> From: Ulf Hansson Date: Tue, 11 Oct 2022 15:51:13 +0200 Message-ID: Subject: Re: [PATCH V2] mmc: sdhci-sprd: Fix minimum clock limit To: Wenchao Chen Cc: adrian.hunter@intel.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, megoo.tang@gmail.com, lzx.stg@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Tue, 11 Oct 2022 at 12:49, Wenchao Chen wrote: > > 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") Applied for fixes, thanks! Kind regards Uffe > --- > 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 >