diff mbox series

[1/2] extcon: usb-gpio: Don't miss event during suspend/resume

Message ID 1487161889-15550-2-git-send-email-rogerq@ti.com
State Accepted
Commit 8680b4d1933fbe3349d51a4e1fd4513b12abffed
Headers show
Series extcon: palmas/usb-gpio: Don't miss events during suspend/resume | expand

Commit Message

Roger Quadros Feb. 15, 2017, 12:31 p.m. UTC
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>

---
 drivers/extcon/extcon-usb-gpio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index d589c5f..71ac427 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -275,9 +275,8 @@  static int usb_extcon_resume(struct device *dev)
 	if (info->vbus_gpiod)
 		enable_irq(info->vbus_irq);
 
-	if (!device_may_wakeup(dev))
-		queue_delayed_work(system_power_efficient_wq,
-				   &info->wq_detcable, 0);
+	queue_delayed_work(system_power_efficient_wq,
+			   &info->wq_detcable, 0);
 
 	return ret;
 }