projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2a3adf
)
mmc: rk3126: add wakeup event for SD insert/remove in deep sleep
author
lintao
<lintao@rock-chips.com>
Thu, 18 Sep 2014 11:59:31 +0000
(19:59 +0800)
committer
lintao
<lintao@rock-chips.com>
Thu, 18 Sep 2014 11:59:31 +0000
(19:59 +0800)
Signed-off-by: lintao <lintao@rock-chips.com>
drivers/mmc/host/rk_sdmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/rk_sdmmc.c
b/drivers/mmc/host/rk_sdmmc.c
index 41e3c20573afd5f88d7d4804480c7f0653d60f03..fd72bcac5e7639c25a3fa8cd0200a2b8c5e2ebd2 100755
(executable)
--- a/
drivers/mmc/host/rk_sdmmc.c
+++ b/
drivers/mmc/host/rk_sdmmc.c
@@
-3198,6
+3198,9
@@
static void dw_mci_of_set_cd_gpio_irq(struct device *dev, u32 gpio,
if (ret < 0) {
irq = ret;
dev_err(host->dev, "Request cd-gpio %d interrupt error!\n", gpio);
+ } else{
+ /* enable wakeup event for gpio-cd in idle or deep suspend*/
+ enable_irq_wake(irq);
}
} else {
dev_err(host->dev, "Cannot convert gpio %d to irq!\n", gpio);