Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a4ecc72f authored by Can Guo's avatar Can Guo
Browse files

mmc: sdhci_msm: Allow turning off SD card's power during initialization



As per eMMC specification, device should be notified either with power-off
or sleep notification before turning off the Vcc. Failing to do so might
affect the device longevity. In mmc driver initialization phase even before
device probing gets completed, Vcc is getting turned off without these
notifications. Since it can't send commands at this stage, so just ensure
that Vcc is not turned off till initialization gets completed. See commit
eed1deac09ea ("mmc: sdhci-msm: Don't turnoff Vcc during initialization")
from msm-4.9 for more details.

However, above does not apply to the SD card and it may leave SD card's
power ON even there is no card present during bootup. Fix it by limiting
the above logic to non-removable devices only.

Change-Id: I9f1f13e7a7f233cf2a2aa945175d4e5c53bd489e
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 1d86c274
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment