extcon: usb-gpio: Queue detectable workqueue on resume

Upon resume/restore queue detectable work
irrespective of the device wakeup capability.
This ensures that during pm_restore the dwc3-msm
driver is notified correctly of the GPIO states
before restore.

Change-Id: Iff955de39d83f3fb55537eeaf65ea8eb014c5513
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
This commit is contained in:
Sriharsha Allenki
2018-06-01 16:00:01 +05:30
parent 2431b7dfcd
commit 9a477737ea

View File

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