]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci: Fix data command CRC error handling
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 15 Nov 2018 13:53:41 +0000 (15:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2019 07:34:41 +0000 (09:34 +0200)
commit110f1242df966255594d58e3aa8e2b35458f8042
tree721c966f394a34a269b93c21e419e76279e75887
parent862b70177babb6533aaac56b86ba4b946f53ada9
mmc: sdhci: Fix data command CRC error handling

[ Upstream commit 4bf780996669280171c9cd58196512849b93434e ]

Existing data command CRC error handling is non-standard and does not work
with some Intel host controllers. Specifically, the assumption that the host
controller will continue operating normally after the error interrupt,
is not valid. Change the driver to handle the error in the same manner
as a data CRC error, taking care to ensure that the data line reset is
done for single or multi-block transfers, and it is done before
unmapping DMA.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci.c