mmc: rk_sdmmc: add platform hook for special pm ops during deepsleep
authorlintao <lintao@rock-chips.com>
Fri, 22 May 2015 02:54:34 +0000 (10:54 +0800)
committerShawn Lin <shawn.lin@rock-chips.com>
Fri, 22 May 2015 08:19:59 +0000 (16:19 +0800)
commit4bb5de4aae7482f6d0b4d7dfc7c926aa14939616
tree0ec6ac43cff264c949c175a9f57136dc2bbfdde3
parentdb270573b263d0338821fdb71b46bfccfbf29d6d
mmc: rk_sdmmc: add platform hook for special pm ops during deepsleep

  We register a platform hook and restore all of our regs if platform does
need to cutoff controller's power-supply during deepsleep in period of time.
Make sure your have added "controller-power-down" property AND comment out
"keep-power-in-suspend" in related dts file.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Xiaoyao <xiaoyao@rock-chips.com>
Reviewed-by: Chenjh <chenjh@rock-chips.com>
Tested-by: Chenjh <chenjh@rock-chips.com>
drivers/mmc/host/rk_sdmmc.c
drivers/mmc/host/rk_sdmmc.h
include/linux/mmc/rk_mmc.h