Re: [PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-05 Thread Alan Stern
On Sat, 5 Jan 2013, Lan Tianyu wrote: > > usb_port_runtime_resume can be called while the hub is suspended, > > right? So it needs to call usb_autopm_get_interface and > > usb_autopm_put_interface. > Current, I don't call pm_suspend_ignore_children(&intf->dev, true) in > the hub_probe(). So the h

Re: [PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-04 Thread Lan Tianyu
On 2013年01月04日 23:53, Alan Stern wrote: > On Fri, 4 Jan 2013, 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(

Re: [PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-04 Thread Alan Stern
On Fri, 4 Jan 2013, 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 > to

[PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-04 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