diff options
author | James Hogan <james.hogan@imgtec.com> | 2011-06-29 12:29:58 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-07-21 01:21:06 +0400 |
commit | 55c5efbc0dbcb20b7f0d264d172ab376494d79a1 (patch) | |
tree | ad31ddb71b4482c57b5affc9543a4d64c751ac6c /include | |
parent | ae837fe6ddb1e4e9238191629baa08c35ed4a6bb (diff) | |
download | linux-55c5efbc0dbcb20b7f0d264d172ab376494d79a1.tar.xz |
mmc: dw_mmc: handle "no CRC status" error
When a data write isn't acknowledged by the card (so no CRC status token
is detected after the data), the error -EIO is returned instead of the
-ETIMEDOUT expected by mmc_test 15 - "Correct xfer_size at write (start
failure)" and 17 "Correct xfer_size at write (midway failure)". In PIO
mode the reported number of bytes transferred is also exaggerated since
the last block actually failed.
Handle the "Write no CRC" error specially, setting the error to
-ETIMEDOUT and setting the bytes_xferred to 0.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions