]> git.baikalelectronics.ru Git - kernel.git/commit
usb: add runtime pm support for usb port device
authorLan Tianyu <tianyu.lan@intel.com>
Tue, 22 Jan 2013 20:26:29 +0000 (04:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Jan 2013 18:12:19 +0000 (10:12 -0800)
commit28a5fe3b9820235a065abf217ace827fe3f46c91
tree553a48486114b3b3b1507cf5dc391f24a464912f
parent0c516079100988ae32d514a6a203d5944fd219ea
usb: add runtime pm support for usb port device

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>
drivers/usb/core/hub.c
drivers/usb/core/hub.h
drivers/usb/core/port.c