On Wed, May 3, 2017 at 7:05 AM, Benoît Thébaudeau <[email protected]> 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 <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>

