OSDN Git Service

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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit4bf780996669280171c9cd58196512849b93434e
tree7b7cfbb93d5ec271c3ec688cbdff2800d993111b
parent7e2d23ec3a7d84fa5f64f2f6c66619d40adfdec3
mmc: sdhci: Fix data command CRC error handling

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>
drivers/mmc/host/sdhci.c