mmc: mmci: Reverse IRQ handling for the arm_variant
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Jun 2014 11:21:38 +0000 (13:21 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Aug 2014 08:24:23 +0000 (10:24 +0200)
commit7878289b269d41c8e611aa6d4519feae706e49f3
treefa9ea335a8123968a123551d7cb92fc1d5bf651a
parentad82bfea44835da9633548e2031a1af4a9965c14
mmc: mmci: Reverse IRQ handling for the arm_variant

Commit "mmc: mmci: Handle CMD irq before DATA irq", caused an issue
when using the ARM model of the PL181 and running QEMU.

The bug was reported for the following QEMU version:
$ qemu-system-arm -version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.1), Copyright
(c) 2003-2008 Fabrice Bellard

To resolve the problem, let's restore the old behavior were the DATA
irq is handled prior the CMD irq, but only for the arm_variant, which
the problem was reported for.

Reported-by: John Stultz <john.stultz@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Tested-by: Kees Cook <keescook@chromium.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c