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

Commit 66385ea2 authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

mmc: sdhci: Fix issue with host op card_event()



For controllers that doesn't support card insertion/removal i.e.,
when the quirk SDHCI_QUIRK_BROKEN_CARD_DETECTION is defined,
card_event() host op must not rely on present state register
to check the card's status.

CRs-fixed: 644221
Change-Id: Icff6db0d8fe17f01cf751896ae09aee215edc548
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 38febb2c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2542,6 +2542,9 @@ static void sdhci_card_event(struct mmc_host *mmc)
	struct sdhci_host *host = mmc_priv(mmc);
	unsigned long flags;

	if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
		return;

	spin_lock_irqsave(&host->lock, flags);

	/* Check host->mrq first in case we are runtime suspended */