aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-usb-gpio.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2017-02-15 07:31:28 -0500
committerChanwoo Choi <cw00.choi@samsung.com>2017-04-05 21:55:21 -0400
commit8680b4d1933fbe3349d51a4e1fd4513b12abffed (patch)
tree2aa18384dc9eda2d1534765673c82f50c2bf72a5 /drivers/extcon/extcon-usb-gpio.c
parent98fd079297dd274c15c926a337253675573c5832 (diff)
extcon: usb-gpio: Don't miss event during suspend/resume
We must check for ID/VBUS changes during resume irrespective of whether our device wakeup is enabled or not. Without this we seem to be missing ID/VBUS events after system suspend/resume. 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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index 0ac32dfdda50..9c925b05b7aa 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -281,9 +281,8 @@ static int usb_extcon_resume(struct device *dev)
281 if (info->vbus_gpiod) 281 if (info->vbus_gpiod)
282 enable_irq(info->vbus_irq); 282 enable_irq(info->vbus_irq);
283 283
284 if (!device_may_wakeup(dev)) 284 queue_delayed_work(system_power_efficient_wq,
285 queue_delayed_work(system_power_efficient_wq, 285 &info->wq_detcable, 0);
286 &info->wq_detcable, 0);
287 286
288 return ret; 287 return ret;
289} 288}