projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12bd0f3
)
extcon: usb-gpio: Don't miss event during suspend/resume
author
Roger Quadros
<rogerq@ti.com>
Mon, 11 Apr 2016 14:04:45 +0000
(17:04 +0300)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Tue, 21 Jun 2016 05:09:53 +0000
(14:09 +0900)
Pin state might have changed during suspend/resume while
our interrupts were disabled and if device doesn't support wakeup.
Scan for change during resume for such case.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-usb-gpio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/extcon/extcon-usb-gpio.c
b/drivers/extcon/extcon-usb-gpio.c
index bc61d1165d736d31cdeeb8c678c95a4be311a472..bad2159d36113d8684c5aa910a5ba2ef9aff9895 100644
(file)
--- a/
drivers/extcon/extcon-usb-gpio.c
+++ b/
drivers/extcon/extcon-usb-gpio.c
@@
-185,6
+185,9
@@
static int usb_extcon_resume(struct device *dev)
int ret = 0;
enable_irq(info->id_irq);
+ if (!device_may_wakeup(dev))
+ queue_delayed_work(system_power_efficient_wq,
+ &info->wq_detcable, 0);
return ret;
}