]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-cadence: add suspend / resume support
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 23 Aug 2017 04:15:00 +0000 (13:15 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:43 +0000 (15:03 +0200)
commite6f8f8268a8d51e4ec79bec644ab090a6e32794a
treef3d2d130c6ee22bbf2394c9ac64f36ad12abb72f
parent17bd943d2c6eef55310beeb6f27562fb801773ac
mmc: sdhci-cadence: add suspend / resume support

Currently, the probe function initializes the PHY, but PHY settings
are lost during the sleep state.  Restore the PHY registers when
resuming.

To facilitate this, split sdhci_cdns_phy_init() into the DT parse
part and PHY update part so that the latter can be invoked from the
resume hook.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c