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

Commit e8b0de9f authored by Sahitya Tummala's avatar Sahitya Tummala Committed by Xiaonian Wang
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 dfdb4af5
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -349,6 +349,9 @@ static void sdhci_led_control(struct led_classdev *led,
	struct sdhci_host *host = container_of(led, struct sdhci_host, led);
	struct sdhci_host *host = container_of(led, struct sdhci_host, led);
	unsigned long flags;
	unsigned long flags;


	if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
		return;

	spin_lock_irqsave(&host->lock, flags);
	spin_lock_irqsave(&host->lock, flags);


	if (host->runtime_suspended || sdhci_check_state(host))
	if (host->runtime_suspended || sdhci_check_state(host))