Re: [PATCH 2/4] mmc: sdhci-esdhc-imx: Fix DAT line software reset

From: Fabio Estevam
Date: Mon May 29 2017 - 07:13:29 EST


On Wed, May 3, 2017 at 7:05 AM, BenoÃt ThÃbaudeau <benoit@xxxxxxxxxxx> wrote:
> On i.MX25, the eSDHC DAT line software reset (SYSCTL.RSTD) unexpectedly
> clears at least the data transfer width (PROCTL.DTW), which then results
> in data CRC errors. This behavior is not documented, but it has actually
> been observed. Consequently, the DAT line software resets triggered by
> sdhci.c in case of errors caused unrecoverable errors.
>
> Fix this by making sure that the DAT line software reset does not alter
> the Host Control register. This behavior being undocumented, it may also
> be present on other i.MX SoCs, so apply this fix for the whole i.MX
> family.
>
> Signed-off-by: BenoÃt ThÃbaudeau <benoit@xxxxxxxxxxx>

Reviewed-by: Fabio Estevam <fabio.estevam@xxxxxxx>