]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0428f9d52512c2d792a2f96368ac2a132f280f1b
tree36862b7af64200f3e9a43c887f7d9afa7ee17b25
parent9d12a4feee9162dbc41a35fd81432219fb044bf8
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