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

2012-11-14 Thread Rafael J. Wysocki
On Wednesday, November 14, 2012 02:34:37 PM Lan Tianyu wrote: On 2012年11月14日 08:08, Rafael J. Wysocki wrote: On Tuesday, November 13, 2012 04:00:02 PM 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.

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

2012-11-14 Thread Lan Tianyu
于 2012/11/14 17:49, Rafael J. Wysocki 写道: On Wednesday, November 14, 2012 02:34:37 PM Lan Tianyu wrote: On 2012年11月14日 08:08, Rafael J. Wysocki wrote: On Tuesday, November 13, 2012 04:00:02 PM Lan Tianyu wrote: This patch is to add runtime pm callback for usb port device. Set/clear PORT_POWER

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

2012-11-14 Thread Lan Tianyu
于 2012/11/14 20:45, Lan Tianyu 写道: 于 2012/11/14 17:49, Rafael J. Wysocki 写道: On Wednesday, November 14, 2012 02:34:37 PM Lan Tianyu wrote: On 2012年11月14日 08:08, Rafael J. Wysocki wrote: On Tuesday, November 13, 2012 04:00:02 PM Lan Tianyu wrote: This patch is to add runtime pm callback for

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

2012-11-14 Thread Lan Tianyu
于 2012/11/14 20:45, Lan Tianyu 写道: 于 2012/11/14 17:49, Rafael J. Wysocki 写道: On Wednesday, November 14, 2012 02:34:37 PM Lan Tianyu wrote: On 2012年11月14日 08:08, Rafael J. Wysocki wrote: On Tuesday, November 13, 2012 04:00:02 PM Lan Tianyu wrote: This patch is to add runtime pm callback for

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

2012-11-14 Thread Alan Stern
On Wed, 14 Nov 2012, Lan Tianyu wrote: Hi Rafael and Alan: This patch has a collaboration problem with pm qos. Since pm core would pm_runtime_get_sync/put(port_dev) if pm qos flags was changed and port's suspend call_back() clear PORT_POWER feature without any check. This will

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

2012-11-13 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. Signed-off-by: Lan Tianyu tianyu@intel.com --- drivers/usb/core/hub.c | 14 ++

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

2012-11-13 Thread Rafael J. Wysocki
On Tuesday, November 13, 2012 04:00:02 PM 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. Signed-off-by: Lan Tianyu tianyu@intel.com This

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

2012-11-13 Thread Lan Tianyu
On 2012年11月14日 08:08, Rafael J. Wysocki wrote: On Tuesday, November 13, 2012 04:00:02 PM 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.