]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
extcon: usb-gpio: Don't miss event during suspend/resume
authorRoger Quadros <rogerq@ti.com>
Wed, 15 Feb 2017 12:31:28 +0000 (14:31 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Apr 2017 01:55:21 +0000 (10:55 +0900)
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>
drivers/extcon/extcon-usb-gpio.c

index 0ac32dfdda505dca28c6a3dd18d0eacf6c2907ca..9c925b05b7aaa1a479e9f2a49b0479233fd068be 100644 (file)
@@ -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;
 }