From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dong Aisheng Subject: Re: [PATCH] mmc: sdhci-esdhc-imx: correct the max timeout count Date: Tue, 16 Aug 2016 15:44:58 +0800 Message-ID: <20160816074457.GB9211@shlinux2> References: <1471249893-32345-1-git-send-email-haibo.chen@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:32891 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753058AbcHPHyd (ORCPT ); Tue, 16 Aug 2016 03:54:33 -0400 Received: by mail-pf0-f196.google.com with SMTP id i6so5090736pfe.0 for ; Tue, 16 Aug 2016 00:54:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1471249893-32345-1-git-send-email-haibo.chen@nxp.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Haibo Chen Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, aisheng.dong@nxp.com, linux-mmc@vger.kernel.org On Mon, Aug 15, 2016 at 04:31:33PM +0800, Haibo Chen wrote: > i.MX USDHC Reference Manual has a mistake, for the register SYS_CTRL, > the DTOCV(bit 19~16) means the data timeout counter value. When DTOCV > is set to 0xF, it means SDCLK << 29, not SDCLK << 28. > > Signed-off-by: Haibo Chen > --- > drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c > index 437c448..ea7d086 100644 > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > @@ -929,7 +929,7 @@ static unsigned int esdhc_get_max_timeout_count(struct sdhci_host *host) > struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); > struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); > Better add a comment here like: /* Doc Errata: the uSDHC actual maximum timeout count is 1 << 29 */ > - return esdhc_is_usdhc(imx_data) ? 1 << 28 : 1 << 27; > + return esdhc_is_usdhc(imx_data) ? 1 << 29 : 1 << 27; Otherwise: Acked-by: Dong Aisheng Regards Dong Aisheng > } > > static void esdhc_set_timeout(struct sdhci_host *host, struct mmc_command *cmd) > -- > 1.9.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html