[linux-yocto] [PATCH 17/29] sdhc: acpi: Fix SDCARD card detection failure
rebecca.swee.fun.chang at intel.com
rebecca.swee.fun.chang at intel.com
Mon Apr 7 08:18:08 PDT 2014
From: "Chew, Chiau Ee" <chiau.ee.chew at intel.com>
This is to fix the card detection failure when the
card detect status is read from the GPIO status register.
Signed-off-by: Chew, Chiau Ee <chiau.ee.chew at intel.com>
Signed-off-by: Maurice Petallo <mauricex.r.petallo at intel.com>
---
drivers/mmc/host/sdhci-acpi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
index c108d38..da7b35d 100644
--- a/drivers/mmc/host/sdhci-acpi.c
+++ b/drivers/mmc/host/sdhci-acpi.c
@@ -42,6 +42,7 @@
#include <linux/mmc/host.h>
#include <linux/mmc/pm.h>
#include <linux/mmc/sdhci.h>
+#include <linux/mmc/slot-gpio.h>
#include "sdhci.h"
@@ -338,8 +339,9 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
goto err_free;
if (sdhci_acpi_flag(c, SDHCI_ACPI_SD_CD)) {
- if (sdhci_acpi_add_own_cd(dev, gpio, host->mmc))
+ if (mmc_gpio_request_cd(host->mmc, gpio, 0)) {
c->use_runtime_pm = false;
+ }
}
if (c->use_runtime_pm) {
--
1.7.10.4
More information about the linux-yocto
mailing list