Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp491246rwb; Tue, 29 Nov 2022 01:09:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xjXIfs3dYKau1ZQfI1OXzHMziADKkj70giO/fyUfyZGpezA/qhBcfZhUqoMqgBA4auKox X-Received: by 2002:a63:5544:0:b0:477:6fe2:c1d1 with SMTP id f4-20020a635544000000b004776fe2c1d1mr31138903pgm.444.1669712946032; Tue, 29 Nov 2022 01:09:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669712946; cv=none; d=google.com; s=arc-20160816; b=bw5ShWFIDIFu4LKrMD5AUqmKhfj2e7GbVqqccku86JFzFHDspQnQ+jAit+OD1korhb UWxEFO4G/DacxFmExHmNmiQ7tXCDHc8uUaXDlD+PO8AJ8RH2OqMEnO0u+VKXiN4tSkZW vT1MEztAA9r9vEVPbQOcwjXVBKsVO65l9TDpKP2To7AoMPLZHwpUwhO9gJ7VbJqiZY7h Ev+pNuK3xqs17Fyij7DkBCCP+LzisA33Mc5/mVKaw9bC9TbLTtL1a5dAWyoT3ZZGDHwg C5bBYPbFso9LYV6Yq3UuE3DXd7YMQn4m0w8HJpvwFXN5qhNeobd9/pdOk4zPjD9uaPLy LxLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=BnpHMvbYClVfVbS5b4IGi48vTp8tubfuhr0eTu6I1vs=; b=baaZXM36S7Sh5npjbZkhPexbGLRS7pBUDzkqQL8e8T9rW0h2hsaIcaywI+RRYraDD5 pO4F1eywBOaDO1gTI9B/WS3NfbviHK0ylRwzvyciFPoVI9V8434Suh4DTUykSArXW9Jy RLin2e4wHUTGz9Mb24IlZlQ4gfdeA9787PyXuQp/ca4WnaL8MJ+oVhSYl8PqEogmT2Gk LW/ufjVwIg13UxuRv4RXRLlBjWA3PinqsGP8SzQDLbeD4o8kRLnMYCs7AJ74WR1NWFPH msJPCiGiZu1qIuXiVCxPHT0urR1A2poCAljqGGZXWBzjkZum5+GjG03wFfuFOPz4QnbO H2ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d+zLyDix; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a656741000000b00477aec23235si13295288pgu.40.2022.11.29.01.08.55; Tue, 29 Nov 2022 01:09:06 -0800 (PST) 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=@intel.com header.s=Intel header.b=d+zLyDix; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbiK2IE7 (ORCPT + 83 others); Tue, 29 Nov 2022 03:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229780AbiK2IE6 (ORCPT ); Tue, 29 Nov 2022 03:04:58 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF49A3056C; Tue, 29 Nov 2022 00:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669709097; x=1701245097; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=F5ck3m2Z6Ymc6e3F8aWHj8A97GRThgnLiem/CNiq1iU=; b=d+zLyDixQUQpi93Th72E1iw7WsJuAQ3nF0Mq2cTgr3Epw8OD+AWez9/w apM+/YK+I4wJST40dogHMmAjqoFwiqWlZOeignrLAbdpTL//gIrB09k89 K/lHTADtZOFfaYW87XZDCd44OBS/4fILUk8fzBwsnifiZWV1hHXx1aE9A F0Q0ABCdY+NMkZ8U21+VVIyBV48iihN3bN0zjkhTrudbv3dr/INyE7W6w In1+EKCB2fL3IChZwQp3/INMPbTzprmns8Uw/8kxbjpEwqqzfIa3F5s/9 uGsmQUMMC9SdrUxynU3+x7rLqteYGj23bb9U9/RgB/SSDR8hRgHQVTjnN g==; X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="302638485" X-IronPort-AV: E=Sophos;i="5.96,202,1665471600"; d="scan'208";a="302638485" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2022 00:04:57 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10545"; a="749735586" X-IronPort-AV: E=Sophos;i="5.96,202,1665471600"; d="scan'208";a="749735586" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.34.177]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2022 00:04:55 -0800 Message-ID: <52030ce1-5781-cd62-e0bc-b70a011a024b@intel.com> Date: Tue, 29 Nov 2022 10:04:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.5.0 Subject: Re: [PATCH] mmc: sdhci-of-esdhc: limit the SDHC clock frequency Content-Language: en-US To: andy.tang@nxp.com, ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221124064608.42019-1-andy.tang@nxp.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20221124064608.42019-1-andy.tang@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE 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 24/11/22 08:46, andy.tang@nxp.com wrote: > From: Yuantian Tang > > The highest clock frequency for eMMC HS200 mode on ls1043a > is 116.7Mhz according to its specification. > So add the limit to gate the frequency. > > Signed-off-by: Andy Tang It is probably nicer to use a consistent email name. checkpatch gives this warning: WARNING: From:/Signed-off-by: email name mismatch: 'From: Yuantian Tang ' != 'Signed-off-by: Andy Tang ' > --- > drivers/mmc/host/sdhci-of-esdhc.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c > index 00542dd74c07..1fd4ae10862d 100644 > --- a/drivers/mmc/host/sdhci-of-esdhc.c > +++ b/drivers/mmc/host/sdhci-of-esdhc.c > @@ -43,6 +43,12 @@ static const struct esdhc_clk_fixup ls1021a_esdhc_clk = { > .max_clk[MMC_TIMING_SD_HS] = 46500000, > }; > > +static const struct esdhc_clk_fixup ls1043a_esdhc_clk = { > + .sd_dflt_max_clk = 25000000, > + .max_clk[MMC_TIMING_UHS_SDR104] = 116700000, > + .max_clk[MMC_TIMING_MMC_HS200] = 116700000, > +}; ls1043a_esdhc_clk seems the same as ls1046a_esdhc_clk Should they be shared? e.g. called ls104xx_esdhc_clk > + > static const struct esdhc_clk_fixup ls1046a_esdhc_clk = { > .sd_dflt_max_clk = 25000000, > .max_clk[MMC_TIMING_UHS_SDR104] = 167000000, > @@ -64,6 +70,7 @@ static const struct esdhc_clk_fixup p1010_esdhc_clk = { > > static const struct of_device_id sdhci_esdhc_of_match[] = { > { .compatible = "fsl,ls1021a-esdhc", .data = &ls1021a_esdhc_clk}, > + { .compatible = "fsl,ls1043a-esdhc", .data = &ls1043a_esdhc_clk}, > { .compatible = "fsl,ls1046a-esdhc", .data = &ls1046a_esdhc_clk}, > { .compatible = "fsl,ls1012a-esdhc", .data = &ls1012a_esdhc_clk}, > { .compatible = "fsl,p1010-esdhc", .data = &p1010_esdhc_clk},