]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9caeabe7751427f00d9e221124053b5bb9847768
treefed94ab5b6b4b81a6ed669940ec25017fc330657
parentba1828d5873ef550bb1f1ab1b3634bb20bb0d6fc
mmc: sdhci: Fix to handle MMC_POWER_UNDEFINED

Since commit 516a3a266015 ("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: 516a3a266015 ("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