Re: [PATCH 1/3] usb: add function usb_autopm_get_interface_upgrade

2015-05-26 Thread Zhang, Yanmin
On 2015/5/26 22:12, Greg Kroah-Hartman wrote: On Tue, May 26, 2015 at 10:19:57AM +0800, Zhang, Yanmin wrote: Some usb driver has a specific requirement. Their critical functions might be called under both atomic environment and non-atomic environment. If it's under atomic environment, the dri

Re: [PATCH 1/3] usb: add function usb_autopm_get_interface_upgrade

2015-05-26 Thread Greg Kroah-Hartman
On Tue, May 26, 2015 at 10:19:57AM +0800, Zhang, Yanmin wrote: > Some usb driver has a specific requirement. Their critical functions > > might be called under both atomic environment and non-atomic environment. > > If it's under atomic environment, the driver can wake up the device > > by calli

[PATCH 1/3] usb: add function usb_autopm_get_interface_upgrade

2015-05-25 Thread Zhang, Yanmin
Some usb driver has a specific requirement. Their critical functions might be called under both atomic environment and non-atomic environment. If it's under atomic environment, the driver can wake up the device by calling pm_runtime_get_sync directly. If it's under non-atomic environment, the