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>
This commit is contained in:
Roger Quadros 2016-04-11 17:04:45 +03:00 коммит произвёл Chanwoo Choi
Родитель 12bd0f323b
Коммит 04c0800808
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -185,6 +185,9 @@ static int usb_extcon_resume(struct device *dev)
int ret = 0; int ret = 0;
enable_irq(info->id_irq); enable_irq(info->id_irq);
if (!device_may_wakeup(dev))
queue_delayed_work(system_power_efficient_wq,
&info->wq_detcable, 0);
return ret; return ret;
} }