+27
−0
+4
−0
+46
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This patch is to add runtime pm callback for usb port device. Set/clear PORT_POWER feature in the resume/suspend callback. Add portnum for struct usb_port to record port number. Do pm_rumtime_get_sync/put(portdev) when a device is plugged/unplugged to prevent it from being powered off when it is active. Acked-by:Alan Stern <stern@rowland.harvard.edu> Acked-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Lan Tianyu <tianyu.lan@intel.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>