mmc: sdhi: Fixup system PM suspend lock-up
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Aug 2014 10:18:26 +0000 (12:18 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 01:39:25 +0000 (10:39 +0900)
commitc78fa0fde6f2432029d6f352dd825763c939d038
tree90b5492780b4a28d3c0fd3b336e831d2a239a3bb
parent4fb6177671b9c32b4edca1d134422fcd803a5461
mmc: sdhi: Fixup system PM suspend lock-up

At system PM suspend, the tmio core accessed the internal registers of
the controller without first moving the device into active state. This
caused a lock-up in system PM suspend phase.

The reason for the register access were masking of IRQs. Since that is
managed via the runtime PM suspend path, let's just re-use that path
for system PM suspend.

In other words force the device into runtime PM suspend state at system
PM suspend and restore it to active state at system PM resume.

Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
(cherry picked from commit 753a688c9f28ad3198611bbbd39f3b226c35ab98)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/mmc/host/sh_mobile_sdhi.c