]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sdhci-omap: Update 'power_mode' outside sdhci_omap_init_74_clocks
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 5 Feb 2018 12:50:14 +0000 (18:20 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Mar 2018 08:00:56 +0000 (09:00 +0100)
commit300df508c806c0b0446f075bc7658f0fefa1b701
tree6a983a91d13afdd8f24f8670129da19187ab4ddf
parent661e50bc853209e41a5c14a290ca4decc43cbfd1
mmc: sdhci-omap: Update 'power_mode' outside sdhci_omap_init_74_clocks

Updating 'power_mode' in sdhci_omap_init_74_clocks results in
'power_mode' never updated to MMC_POWER_OFF during card
removal. This results in initialization sequence not sent to the
card during re-insertion.
Fix it here by adding sdhci_omap_set_power_mode to update power_mode.
This function can also be used later to perform operations that
are specific to a power mode (e.g, disable tuning during power off).

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c