[PATCH 105/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00112477 SDHC: Remove GPIO pin inactive/active on suspend/resume

Brad Figg brad.figg at canonical.com
Thu Jul 9 16:49:35 UTC 2009


From: Xiexiaobo <X.Xie at freescale.com>

The MX25-3DS used a GPIO pin as detect_irq, when system suspend,
mxc_free_gpio() will disable this GPIO irq, but the mxc_request_gpio()
don't enable this GPIO irq, so the insertting and removing SD/MMC
can not be detected after suspend and resume operations. This fixed it.

Signed-off-by: Xie Xiaobo <X.Xie at freescale.com>
(cherry picked from commit 12fa5453b651c906a572792e39f6b667314ff723)
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
 drivers/mmc/host/mx_sdhci.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/mmc/host/mx_sdhci.c b/drivers/mmc/host/mx_sdhci.c
index e156ae9..64222a2 100644
--- a/drivers/mmc/host/mx_sdhci.c
+++ b/drivers/mmc/host/mx_sdhci.c
@@ -1573,8 +1573,6 @@ static int sdhci_suspend(struct platform_device *pdev, pm_message_t state)
 		free_irq(chip->hosts[i]->irq, chip->hosts[i]);
 	}
 
-	gpio_sdhc_inactive(pdev->id);
-
 	return 0;
 }
 
@@ -1589,8 +1587,6 @@ static int sdhci_resume(struct platform_device *pdev)
 
 	DBG("Resuming...\n");
 
-	gpio_sdhc_active(pdev->id);
-
 	for (i = 0; i < chip->num_slots; i++) {
 		if (!chip->hosts[i])
 			continue;
-- 
1.6.0.4





More information about the kernel-team mailing list