mmc: sdhci-xenon: add runtime pm support and reimplement standby
authorZhoujie Wu <zjwu@marvell.com>
Tue, 29 Aug 2017 18:54:49 +0000 (11:54 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:37:31 +0000 (15:37 +0200)
commita027b2c5fed78851e69fab395b02d127a7759fc7
tree6ec1c1c37a005483aaa4bd0afc563f5d570dc73e
parent689dc7eb2ca2bd89872ef1510ff912cf31815811
mmc: sdhci-xenon: add runtime pm support and reimplement standby

Enable runtime pm support for xenon controller, which uses 50ms
auto runtime suspend by default.
Reimplement system standby based on runtime pm API.
Introduce restore_needed to restore the Xenon specific registers
when resume.

Signed-off-by: Zhoujie Wu <zjwu@marvell.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-xenon.c
drivers/mmc/host/sdhci-xenon.h