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

Commit ec4b8853 authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: sdhci-msm: Update the MGPI SW check to avoid irq timeout



Without this check one irq is not handled properly at boot
leading to irq timeout.
Because of this timeout, boot time delay is being observed.

Update the MGPI SW check to avoid irq timeout and boot delay.

Change-Id: I059da770bc789023f59aa927c4b8a49736678363
Signed-off-by: default avatarSarthak Garg <quic_sartgarg@quicinc.com>
parent 533e6782
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3194,7 +3194,7 @@ static irqreturn_t sdhci_msm_pwr_irq(int irq, void *data)

	sdhci_msm_clear_pwrctl_status(host, irq_status);

	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;
		sdhci_msm_writeb_relaxed(irq_ack, host,
@@ -3436,7 +3436,7 @@ static void sdhci_msm_check_power_status(struct sdhci_host *host, u32 req_type)
		sdhci_msm_dump_pwr_ctrl_regs(host);
	}

	if (mmc->ops->get_cd && !mmc->ops->get_cd(mmc) &&
	if (mmc->card && mmc->ops->get_cd && !mmc->ops->get_cd(mmc) &&
			(req_type & REQ_BUS_ON)) {
		host->pwr = 0;
		sdhci_writeb(host, 0, SDHCI_POWER_CONTROL);