mmc: mmci: Reverse IRQ handling for the arm_variant
authorUlf Hansson <[email protected]>
Fri, 13 Jun 2014 11:21:38 +0000 (13:21 +0200)
committerUlf Hansson <[email protected]>
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 <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Russell King <[email protected]>
Tested-by: Kees Cook <[email protected]>
Tested-by: John Stultz <[email protected]>
Cc: <[email protected]> # v3.15+
Signed-off-by: Ulf Hansson <[email protected]>
drivers/mmc/host/mmci.c