1
0
Fork 0

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>
hifive-unleashed-5.1
Roger Quadros 2016-04-11 17:04:45 +03:00 committed by Chanwoo Choi
parent 12bd0f323b
commit 04c0800808
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}