]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mmc: sdhci: Handle auto-command errors
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 15 Nov 2018 13:53:43 +0000 (15:53 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitb9c932490cef195a0412793e76bfe620ebce809a
treec2266a02c11350e9274df3e1a848e06e6c5ec1a4
parent50ea2a4b08953b393155e829e1089ebdd66f3f57
mmc: sdhci: Handle auto-command errors

BugLink: https://bugs.launchpad.net/bugs/1838349
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h