Re: [PATCH 07/10] usb: add runtime pm support for usb port device

2012-11-28 Thread Alan Stern
On Sat, 17 Nov 2012, Lan Tianyu wrote: > This patch is to add runtime pm callback for usb port device. > Set/clear PORT_POWER feature in the resume/suspend callbak. > Add portnum for struct usb_port to record port number. Do > pm_rumtime_get_sync/put(portdev) when a device is plugged/unplugged > t

[PATCH 07/10] usb: add runtime pm support for usb port device

2012-11-17 Thread Lan Tianyu
This patch is to add runtime pm callback for usb port device. Set/clear PORT_POWER feature in the resume/suspend callbak. 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 power off when it is activ