diff options
author | Roger Quadros <rogerq@ti.com> | 2016-04-11 17:04:45 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-06-21 08:09:53 +0300 |
commit | 04c080080855ce84dcd490a2e04805608a21085d (patch) | |
tree | 9702ed2918733ff9315b84c6ae9d7b51d2674dac /drivers/extcon | |
parent | 12bd0f323b855ee548367f48062cf58cae5acda8 (diff) | |
download | linux-04c080080855ce84dcd490a2e04805608a21085d.tar.xz |
extcon: usb-gpio: Don't miss event during suspend/resume
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>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-usb-gpio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index bc61d1165d73..bad2159d3611 100644 --- 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; } |