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

Skip to content
Commit 613b3715 authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: sdhci-msm: Remove mmc->card check from MGPI design support



Remove mmc->card check from MGPI design support to handle one corner
case where the card can be removed as part of mmc_set_uhs_voltage inside
mmc_sd_get_cid. In that case we may go for mmc_power_cycle due to errors
which occur due to card removal.
Moreover mmc->card will be NULL at that point as card is not initialized
yet due to which we may end up turning ON the regulators as part of
mmc_power_up leading to SIM card burn issue.

To avoid that remove mmc->card check to handle such cases where card is
removed before initialization and we do power_cycle due to card removal.
Also notify sdhci_msm_check_power_status in such cases which will be
waiting for completion of such irq's to avoid irq timeouts leading to
bootup delays by 5secs for each such irq.

Change-Id: I50e2647cff183cd48d3e2565e4b97839ec1355b3
Signed-off-by: default avatarSarthak Garg <quic_sartgarg@quicinc.com>
parent 0aeda345
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