Commit f022a61d authored by Dong Aisheng's avatar Dong Aisheng Committed by Nitin Garg
Browse files

MLK-11184 mmc: sdhci: wait data error interrupts to handle transfer error for data commands



Due to the data may be still in transferring if a cmd error of data
command happens, the next quick reset during data transfer may cause host
controller unpridicable issues.
e.g. On MX6Q/MX6QP, if reset during ADMA is busy moving data from FIFO to
memory, we can observe 32 bytes lost issue sometimes in a very lower
possibility especially for SD3.0 cards because the tuning command can easily
fail on cmd error before data transfer complete.

Let's using data error interrupts to handle transfer error of a
data command instead of only checking cmd error, then can make sure
the next safe reset only happens when data transfer is done.

After fixing, the SD3.0 can pass 3 days reboot stress test while it could
easily fail on only one night stress test before.

Signed-off-by: default avatarDong Aisheng <aisheng.dong@freescale.com>
parent 27d6a0f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment