Explorar o código

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>
Roger Quadros %!s(int64=8) %!d(string=hai) anos
pai
achega
8680b4d193
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      drivers/extcon/extcon-usb-gpio.c

+ 2 - 3
drivers/extcon/extcon-usb-gpio.c

@@ -281,9 +281,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;
 }