]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning
authorFaiz Abbas <faiz_abbas@ti.com>
Thu, 11 Apr 2019 08:59:37 +0000 (14:29 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Apr 2019 10:40:32 +0000 (12:40 +0200)
commit7a04a932141965ac3e4f7b0110a79a680d5b91e0
tree728ed8df779df5c676d2e5308379ee50c6119935
parent143660914e7791ecee9738eb9bcc7cc7661addc3
mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning

commit 182ae2c85a82 ("mmc: sdhci-omap: Add platform specific reset
callback") skips data resets during tuning operation. Because of this,
a data error or data finish interrupt might still arrive after a command
error has been handled and the mrq ended. This ends up with a "mmc0: Got
data interrupt 0x00000002 even though no data operation was in progress"
error message.

Fix this by adding a platform specific callback for sdhci_irq. Mark the
mrq as a failure but wait for a data interrupt instead of calling
finish_mrq().

Fixes: 182ae2c85a82 ("mmc: sdhci-omap: Add platform specific reset
callback")
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c