[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1455198537-21791-1-git-send-email-ludovic.desroches@atmel.com>
Date: Thu, 11 Feb 2016 14:48:57 +0100
From: Ludovic Desroches <ludovic.desroches@...el.com>
To: <ulf.hansson@...aro.org>
CC: <linux-mmc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<nicolas.ferre@...el.com>, <adrian.hunter@...el.com>,
Ludovic Desroches <ludovic.desroches@...el.com>
Subject: [PATCH] mmc: sdhci-of-at91: fix card detect when using runtime PM
Add quirk broken card detection to enable card detection polling. It is
a short term solution until reworking PM stuff.
If the card detect signal is connected to the sdhci controller and not a
gpio, when runtime PM suspend happens, we have no way to wake up on a card
detect event since these irqs are no more enabled.
Signed-off-by: Ludovic Desroches <ludovic.desroches@...el.com>
Fixes: f5f17813ae9b ("mmc: sdhci-of-at91: add PM support")
---
drivers/mmc/host/sdhci-of-at91.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
index 9cb86fb..efec736 100644
--- a/drivers/mmc/host/sdhci-of-at91.c
+++ b/drivers/mmc/host/sdhci-of-at91.c
@@ -45,6 +45,7 @@ static const struct sdhci_ops sdhci_at91_sama5d2_ops = {
static const struct sdhci_pltfm_data soc_data_sama5d2 = {
.ops = &sdhci_at91_sama5d2_ops,
+ .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION,
.quirks2 = SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST,
};
--
2.7.0
Powered by blists - more mailing lists