提交 04c08008 编写于 作者: R Roger Quadros 提交者: Chanwoo Choi

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: NRoger Quadros <rogerq@ti.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
上级 12bd0f32
...@@ -185,6 +185,9 @@ static int usb_extcon_resume(struct device *dev) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册