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:
Sarthak Garg <quic_sartgarg@quicinc.com>
Loading
Please register or sign in to comment