mmc: sdhci: Fix unexpected data interrupt handling
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 2 Nov 2016 13:49:09 +0000 (15:49 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Nov 2016 12:26:42 +0000 (13:26 +0100)
commit69b962a65a547690a356f9f76bc4f53db538ac49
tree36862b7af64200f3e9a43c887f7d9afa7ee17b25
parent6ebebeab5185f50d55c6a24d0abe47e5dac1b191
mmc: sdhci: Fix unexpected data interrupt handling

In the busy response case (i.e. !host->data), an unexpected data interrupt
would result in clearing the data command as though it had completed but
without informing the upper layers and thus resulting in a hang.  Fix by
only clearing the data command for data interrupts that are expected.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c