[U-Boot] [PATCH] mmc: fsl_esdhc: Fix PIO timeout

Fabio Estevam festevam at gmail.com
Tue Oct 31 14:31:25 UTC 2017


On Sun, Oct 29, 2017 at 7:08 PM, Benoît Thébaudeau
<benoit.thebaudeau.dev at gmail.com> wrote:
> The following error has been observed on i.MX25 with a high-speed SDSC
> card:
>     Data Write Failed in PIO Mode.
>
> It was caused by the timeout set on PRSSTAT.BWEN, which was triggered
> because this bit takes 15 ms to be set after writing the first block to
> DATPORT with this card. Without this timeout, all the blocks are
> properly written.
>
> This timeout was implemented by decrementing a variable, so it was
> depending on the CPU frequency. Fix this issue by setting this timeout
> to a long enough absolute duration (500 ms).
>
> Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev at gmail.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>

Reviewed-by: Fabio Estevam <fabio.estevam at nxp.com>


More information about the U-Boot mailing list