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

Commit 3ec8544d authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Gerrit - the friendly Code Review server
Browse files

usb: core: Resume the devices on pm restore



On system restoring from hibernation to reset-resume
the connected USB devices, resume the devices
on pm restore irrespective of the skip_resume
flag.

Change-Id: I56e46c579db572e39eabdc6d2be95b00f2c7d9cb
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 22078a25
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1495,9 +1495,10 @@ int usb_resume(struct device *dev, pm_message_t msg)
	 * Some buses would like to keep their devices in suspend
	 * state after system resume.  Their resume happen when
	 * a remote wakeup is detected or interface driver start
	 * I/O.
	 * I/O. And in the case when the system is restoring from
	 * hibernation, make sure all the devices are resumed.
	 */
	if (udev->bus->skip_resume)
	if (udev->bus->skip_resume && msg.event != PM_EVENT_RESTORE)
		return 0;

	/* For all calls, take the device back to full power and