Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8680b4d1 authored by Roger Quadros's avatar Roger Quadros Committed by Chanwoo Choi
Browse files

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: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 98fd0792
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -281,7 +281,6 @@ 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);