mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 11:24:51 +08:00
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:
@@ -277,9 +277,8 @@ static int usb_extcon_resume(struct device *dev)
|
|||||||
if (info->vbus_gpiod)
|
if (info->vbus_gpiod)
|
||||||
enable_irq(info->vbus_irq);
|
enable_irq(info->vbus_irq);
|
||||||
|
|
||||||
if (!device_may_wakeup(dev))
|
queue_delayed_work(system_power_efficient_wq,
|
||||||
queue_delayed_work(system_power_efficient_wq,
|
&info->wq_detcable, 0);
|
||||||
&info->wq_detcable, 0);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user