diff mbox series

[V5,2/3] mmc: core: Set default power mode in mmc_alloc_host

Message ID 1592919288-1020-3-git-send-email-vbadigan@codeaurora.org (mailing list archive)
State New, archived
Headers show
Series [V5,1/3] mmc: sdhci: Allow platform controlled voltage switching | expand

Commit Message

Veerabhadrarao Badiganti June 23, 2020, 1:34 p.m. UTC
Set the default power mode (which is MMC_POWER_UNDEFINE)
in mmc_alloc_host, so that the vendor drivers can make use of this
state to perform needed actions during the platform driver probe.

Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
 drivers/mmc/core/host.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index 6141a85749ca..793597556cd7 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -434,6 +434,7 @@  struct mmc_host *mmc_alloc_host(int extra, struct device *dev)
 	host->fixed_drv_type = -EINVAL;
 	host->ios.power_delay_ms = 10;
+	host->ios.power_mode = MMC_POWER_UNDEFINED;
 	return host;