From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753127AbcBKNtJ (ORCPT ); Thu, 11 Feb 2016 08:49:09 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:52379 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751875AbcBKNtI (ORCPT ); Thu, 11 Feb 2016 08:49:08 -0500 From: Ludovic Desroches To: CC: , , , , Ludovic Desroches Subject: [PATCH] mmc: sdhci-of-at91: fix card detect when using runtime PM Date: Thu, 11 Feb 2016 14:48:57 +0100 Message-ID: <1455198537-21791-1-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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