mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "mmc: sdhci-msm: Ensure SD card power isn't ON when card removed"
This commit is contained in:
commit
eaba670acb
1 changed files with 1 additions and 1 deletions
|
|
@ -2105,7 +2105,7 @@ static void sdhci_msm_handle_pwr_irq(struct sdhci_host *host, int irq)
|
|||
udelay(10);
|
||||
}
|
||||
|
||||
if (mmc->ops->get_cd && !mmc->ops->get_cd(mmc) &&
|
||||
if (mmc->card && mmc->ops->get_cd && !mmc->ops->get_cd(mmc) &&
|
||||
irq_status & CORE_PWRCTL_BUS_ON) {
|
||||
irq_ack = CORE_PWRCTL_BUS_FAIL;
|
||||
msm_host_writel(msm_host, irq_ack, host,
|
||||
|
|
|
|||
Loading…
Reference in a new issue