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
On Friday, March 01, 2013 02:07:54 AM Liu, Chuansheng wrote: > > > -Original Message- > > From: Li, Fei > > Sent: Thursday, February 28, 2013 5:06 PM > > To: gre...@linuxfoundation.org; Lan, Tianyu; st...@rowland.harvard.edu; > > sarah.a.sh...@linux.intel.com > > Cc: r...@sisk.pl; linux-..

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
> -Original Message- > From: Li, Fei > Sent: Thursday, February 28, 2013 5:06 PM > To: gre...@linuxfoundation.org; Lan, Tianyu; st...@rowland.harvard.edu; > sarah.a.sh...@linux.intel.com > Cc: r...@sisk.pl; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > Liu, > Chuansheng; Li,

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