mmc: core: Set default power mode in mmc_alloc_host()
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Tue, 23 Jun 2020 13:34:47 +0000 (19:04 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Jul 2020 10:18:24 +0000 (12:18 +0200)
commited54ef9878fe87d8df5aafdd763a70f96fdbce03
tree66fba377fcfb784f16831ad7ceaf3e1535dd8e90
parent0fcb031e52d7fc03913f2b1aa5302c09ba6155db
mmc: core: Set default power mode in mmc_alloc_host()

Set the default power mode, MMC_POWER_UNDEFINED, in mmc_alloc_host() rather
than in mmc_start_host(). This enables host drivers to make use of the
initial state during ->probe().

Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org> Link:
https://lore.kernel.org/r/1592919288-1020-3-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/host.c