mmc: sdhci: Fix to handle MMC_POWER_UNDEFINED
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 19 Dec 2016 13:33:11 +0000 (15:33 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Dec 2016 10:42:33 +0000 (11:42 +0100)
commit84ec048ba133c2a570273e90622d8fac4930553e
treefed94ab5b6b4b81a6ed669940ec25017fc330657
parent5b311c1519c658bf06f7a08a2ddc2648e4c9cd5c
mmc: sdhci: Fix to handle MMC_POWER_UNDEFINED

Since commit c2c24819b280 ("mmc: core: Don't power off the card when
starting the host"), the power state can still be MMC_POWER_UNDEFINED after
mmc_start_host() is called. That can trigger a warning in SDHCI during
runtime resume as it tries to restore the I/O state. Handle
MMC_POWER_UNDEFINED simply by not updating the I/O state in that case.

Fixes: c2c24819b280 ("mmc: core: Don't power off the card when starting the host")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c