mmc: sdhci: Handle auto-command errors
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 15 Nov 2018 13:53:43 +0000 (15:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2019 07:36:39 +0000 (09:36 +0200)
commit87eadc0b8c2a574c3e48aa0d15e1318a6a24f654
treee6df3fd8064abfea8405c097fc68e27ad346e121
parentba8a6c055677ef22c43fd31b6ac0b27998be36f9
mmc: sdhci: Handle auto-command errors

[ Upstream commit af849c86109d79222e549826068bbf4e7f9a2472 ]

If the host controller supports auto-commands then enable the auto-command
error interrupt and handle it. In the case of auto-CMD23, the error is
treated the same as manual CMD23 error. In the case of auto-CMD12,
commands-during-transfer are not permitted, so the error handling is
treated the same as a data error.

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