RE: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Liu, Chuansheng
nel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > pm_runtime_get_sync failed case > > On Friday, March 01, 2013 02:07:54 AM Liu, Chuansheng wrote: > > > > > -Original Message- > > > From: Li, Fei >

Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Rafael J. Wysocki
l.com > > Cc: r...@sisk.pl; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > Liu, > > Chuansheng; Li, Fei > > Subject: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > > pm_runtime_get_sync failed case > > > > > > Even in failed case

Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Rafael J. Wysocki
.org; Lan, Tianyu; > > sarah.a.sh...@linux.intel.com; linux-...@vger.kernel.org; > > linux-kernel@vger.kernel.org > > Subject: Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > > pm_runtime_get_sync failed case > > > > On Friday, March 01, 2013 1

RE: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Liu, Chuansheng
Liu, > Chuansheng; Li, Fei > Subject: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > pm_runtime_get_sync failed case > > > Even in failed case of pm_runtime_get_sync, the usage_count > is incremented. In order to keep the usage_count with correct > value and runti

RE: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Liu, Chuansheng
ernel@vger.kernel.org > Subject: Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > pm_runtime_get_sync failed case > > On Friday, March 01, 2013 12:38:07 AM Liu, Chuansheng wrote: > > > > > -Original Message- > > > From: Alan Stern [mailto:st...@row

Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Rafael J. Wysocki
yu; sarah.a.sh...@linux.intel.com; > > r...@sisk.pl; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Liu, > > Chuansheng > > Subject: Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > > pm_runtime_get_sync failed case > > > > On Thu, 28 Feb 2013, Li Fei wr

RE: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Liu, Chuansheng
er.kernel.org; Liu, > Chuansheng > Subject: Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in > pm_runtime_get_sync failed case > > On Thu, 28 Feb 2013, Li Fei wrote: > > > > > Even in failed case of pm_runtime_get_sync, the usage_count > > is incremented. I

Re: [PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Alan Stern
On Thu, 28 Feb 2013, Li Fei wrote: > > Even in failed case of pm_runtime_get_sync, the usage_count > is incremented. In order to keep the usage_count with correct > value and runtime power management to behave correctly, call > pm_runtime_put(_sync) in such case. > > Signed-off-by Liu Chuansheng

[PATCH 4/5 V2] usb: call pm_runtime_put_sync in pm_runtime_get_sync failed case

2013-02-28 Thread Li Fei
Even in failed case of pm_runtime_get_sync, the usage_count is incremented. In order to keep the usage_count with correct value and runtime power management to behave correctly, call pm_runtime_put(_sync) in such case. Signed-off-by Liu Chuansheng Signed-off-by: Li Fei --- drivers/usb/core/hub