OSDN Git Service

mmc: sdhci: Handle auto-command errors
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 15 Nov 2018 13:53:43 +0000 (15:53 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitaf849c86109d79222e549826068bbf4e7f9a2472
tree917f3383eb7c317a5e944ae03b8ea1b61a816719
parent869f8a69bb3a4aec4eb914a330d4ba53a9eed495
mmc: sdhci: Handle auto-command errors

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