Re: Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-10-17 Thread Yanmin Zhang
On Mon, 2012-10-15 at 22:59 +0200, Rafael J. Wysocki wrote: > On Monday 15 of October 2012 15:39:49 Yanmin Zhang wrote: > > On Fri, 2012-09-21 at 01:58 +, Zhang, LongX wrote: > > > From: LongX Zhang > > > > > > device_pm_remove will call pm_runtime_remove which would disable > > > runtime PM

Re: Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-10-17 Thread Yanmin Zhang
On Mon, 2012-10-15 at 22:59 +0200, Rafael J. Wysocki wrote: On Monday 15 of October 2012 15:39:49 Yanmin Zhang wrote: On Fri, 2012-09-21 at 01:58 +, Zhang, LongX wrote: From: LongX Zhang longx.zh...@intel.com device_pm_remove will call pm_runtime_remove which would disable

Re: Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-10-15 Thread Rafael J. Wysocki
On Monday 15 of October 2012 15:39:49 Yanmin Zhang wrote: > On Fri, 2012-09-21 at 01:58 +, Zhang, LongX wrote: > > From: LongX Zhang > > > > device_pm_remove will call pm_runtime_remove which would disable > > runtime PM of the device. After that pm_runtime_get* or > > pm_runtime_put* will

Re: Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-10-15 Thread Yanmin Zhang
On Fri, 2012-09-21 at 01:58 +, Zhang, LongX wrote: > From: LongX Zhang > > device_pm_remove will call pm_runtime_remove which would disable > runtime PM of the device. After that pm_runtime_get* or > pm_runtime_put* will be ingored. So if we disable the runtime PM > before device really be

Re: Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-10-15 Thread Yanmin Zhang
On Fri, 2012-09-21 at 01:58 +, Zhang, LongX wrote: From: LongX Zhang longx.zh...@intel.com device_pm_remove will call pm_runtime_remove which would disable runtime PM of the device. After that pm_runtime_get* or pm_runtime_put* will be ingored. So if we disable the runtime PM before

Re: Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-10-15 Thread Rafael J. Wysocki
On Monday 15 of October 2012 15:39:49 Yanmin Zhang wrote: On Fri, 2012-09-21 at 01:58 +, Zhang, LongX wrote: From: LongX Zhang longx.zh...@intel.com device_pm_remove will call pm_runtime_remove which would disable runtime PM of the device. After that pm_runtime_get* or

Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-09-20 Thread Zhang, LongX
From: LongX Zhang device_pm_remove will call pm_runtime_remove which would disable runtime PM of the device. After that pm_runtime_get* or pm_runtime_put* will be ingored. So if we disable the runtime PM before device really be removed, drivers' _remove callback may access HW even

Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-09-20 Thread Zhang, LongX
From: LongX Zhang longx.zh...@intel.com device_pm_remove will call pm_runtime_remove which would disable runtime PM of the device. After that pm_runtime_get* or pm_runtime_put* will be ingored. So if we disable the runtime PM before device really be removed, drivers' _remove callback may access