mmc: core: Add new power_mode MMC_POWER_UNDEFINED
authorRoger Tseng <rogerable@realtek.com>
Wed, 24 Sep 2014 09:07:13 +0000 (17:07 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 24 Sep 2014 09:20:04 +0000 (11:20 +0200)
commit8af465db967bf25a4617416c0cbaaaa506d444f5
treed596b7ab1c6007cec7a6f0a4ec5907f1cc15465a
parent7756a96d1617753d8387e59e0ba410e0dd512be4
mmc: core: Add new power_mode MMC_POWER_UNDEFINED

Add MMC_POWER_UNDEFINED for power_mode in struct mmc_ios and use it as
the initial value of host->ios.power_mode.

For hosts with MMC_CAP2_NO_PRESCAN_POWERUP, this makes the later
mmc_power_off() do real power-off things instead of NOP, and further
prevents state messed up in cards that was already initialized (eg. by
BIOS of UEFI driver).

Signed-off-by: Roger Tseng <rogerable@realtek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
include/linux/mmc/host.h