From: Roger Quadros Date: Wed, 15 Feb 2017 12:31:28 +0000 (+0200) Subject: extcon: usb-gpio: Don't miss event during suspend/resume X-Git-Tag: v5.15~11377^2~11^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8680b4d1933fbe3349d51a4e1fd4513b12abffed;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index 0ac32df..9c925b0 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) 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; }