mmc: jz4740: Reset the device requesting the interrupt
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Wed, 28 Mar 2018 21:00:47 +0000 (18:00 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:31 +0000 (15:08 +0200)
commit436a3cfddcb7a9b92a2035464139ea6be2afe74c
treedf3e5374ddb8cca278f23100d79efdfc8c416751
parent39e9ef1dca795d054f2708e284a3284228cdebbc
mmc: jz4740: Reset the device requesting the interrupt

In case a bootloader leaves the device in a bad state,
requesting the interrupt before resetting results in a bad
interrupt loop.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
[Ezequiel: cleanup commit description]
Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.co.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/jz4740_mmc.c