From mboxrd@z Thu Jan 1 00:00:00 1970 From: cjb@laptop.org (Chris Ball) Date: Sat, 23 Oct 2010 00:12:03 +0100 Subject: [PATCH 1/2] sdhci-esdhc-imx: fix timeout on i.MX's sdhci In-Reply-To: <1287696028-27854-1-git-send-email-eric@eukrea.com> References: <4CC0A281.1010202@eukrea.com> <1287696028-27854-1-git-send-email-eric@eukrea.com> Message-ID: <20101022231203.GA6502@void.printf.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Oct 21, 2010 at 11:20:27PM +0200, Eric B?nard wrote: > this patch fix timeout problems on i.MX's sdhci as suggested by > Richard Zhu. > > Tested on : > - i.MX257 : not needed > - i.MX357 : needed > - i.MX515 : needed > > more details can be found here : > http://lists.infradead.org/pipermail/linux-arm-kernel/2010-October/029748.html > > Signed-off-by: Eric B?nard > Tested-by: Shawn Guo > --- > drivers/mmc/host/sdhci-esdhc-imx.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c > index afbac9a..11e1ae1 100644 > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > @@ -130,6 +130,12 @@ static int esdhc_pltfm_init(struct sdhci_host *host, struct sdhci_pltfm_data *pd > gpio_request(boarddata->wp_gpio, "SD_WP"); > gpio_direction_input(boarddata->wp_gpio); > } > + > + if (cpu_is_mx35() || cpu_is_mx51()) { > + dev_info(mmc_dev(host->mmc), "using broken timeout quirk\n"); > + host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; > + } > + > return 0; > } > This has Wolfram's RFC wp-on-gpio patch applied. Want to repost these against mmc-next? I'll plan on leaving this until after -rc1, so that I can send out a pull request shortly. Thanks, -- Chris Ball One Laptop Per Child