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: Sahitya Tummala <stummala@codeaurora.org>
This commit is contained in:
parent
80a4d5b5a5
commit
93a9fa1e47
1 changed files with 3 additions and 0 deletions
|
@ -344,6 +344,9 @@ static void sdhci_led_control(struct led_classdev *led,
|
|||
struct sdhci_host *host = container_of(led, struct sdhci_host, led);
|
||||
unsigned long flags;
|
||||
|
||||
if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION)
|
||||
return;
|
||||
|
||||
spin_lock_irqsave(&host->lock, flags);
|
||||
|
||||
if (host->runtime_suspended || sdhci_check_state(host))
|
||||
|
|
Loading…
Add table
Reference in a new issue