diff options
author | Roger Quadros <rogerq@ti.com> | 2016-04-11 16:04:45 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-06-21 07:09:53 +0200 |
commit | 04c080080855ce84dcd490a2e04805608a21085d (patch) | |
tree | 9702ed2918733ff9315b84c6ae9d7b51d2674dac /drivers/extcon/extcon-usb-gpio.c | |
parent | extcon: usb-gpio: switch to use pm wakeirq apis (diff) | |
download | linux-04c080080855ce84dcd490a2e04805608a21085d.tar.xz linux-04c080080855ce84dcd490a2e04805608a21085d.zip |
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/extcon-usb-gpio.c')
-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; } |