mmc: sdhci: fix up CMD12 sending
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 14 Nov 2019 11:18:14 +0000 (19:18 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Dec 2019 11:29:36 +0000 (12:29 +0100)
commitfdbbe6cf6dce1879b214fb19085bb79a916c97ac
tree5d570d943f0098cfca8a5668a62fa6143d23e008
parentaf3ed119329cf9690598c5a562d95dfd128e91d6
mmc: sdhci: fix up CMD12 sending

The STOP command is disabled for multiple blocks r/w commands
with auto CMD12, when start to send. However, if there is data
error, software still needs to send CMD12 according to SD spec.
This patch is to allow software CMD12 sending for this case.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20191114111814.35199-1-yangbo.lu@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c