aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorRoger Tseng <rogerable@realtek.com>2014-09-24 17:07:13 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2014-09-24 11:20:04 +0200
commit8af465db967bf25a4617416c0cbaaaa506d444f5 (patch)
treed596b7ab1c6007cec7a6f0a4ec5907f1cc15465a /include/linux/mmc
parentmmc: sdhci: execute tuning when device is not busy (diff)
downloadlinux-dev-8af465db967bf25a4617416c0cbaaaa506d444f5.tar.xz
linux-dev-8af465db967bf25a4617416c0cbaaaa506d444f5.zip
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>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 797ae657dc3d..df0c15396bbf 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -42,6 +42,7 @@ struct mmc_ios {
#define MMC_POWER_OFF 0
#define MMC_POWER_UP 1
#define MMC_POWER_ON 2
+#define MMC_POWER_UNDEFINED 3
unsigned char bus_width; /* data bus width */