mmc_resume_host may send commands to the MMC host, so, the IRQ line have
to be re-enabled before the mmc_resume_host call. Otherwise, the call
may hang, preventing the device from fully waking up.
---
drivers/mmc/host/glamo-mci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/glamo-mci.c b/drivers/mmc/host/glamo-mci.c
index 4fb0c4a..923c1ce 100644
--- a/drivers/mmc/host/glamo-mci.c
+++ b/drivers/mmc/host/glamo-mci.c
@@ -930,10 +930,10 @@ static int glamo_mci_resume(struct device *dev)
glamo_mci_reset(host);
mdelay(10);
- ret = mmc_resume_host(host->mmc);
-
enable_irq(host->irq);
+ ret = mmc_resume_host(host->mmc);
+
mmc_host_lazy_disable(host->mmc);
return ret;
--
1.7.1