Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-18 Thread Rafael J. Wysocki
On Friday, October 18, 2013 09:05:13 PM Lan Tianyu wrote: > On 10/17/2013 07:38 PM, Rafael J. Wysocki wrote: > >>> Unfortunately, I don't see how we can fix this race in a > >>> satisfactory way and I'm starting to think that the whole > >>> resuming of dependent devices may be a bad

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-18 Thread Lan Tianyu
On 10/17/2013 07:38 PM, Rafael J. Wysocki wrote: Unfortunately, I don't see how we can fix this race in a satisfactory way and I'm starting to think that the whole resuming of dependent devices may be a bad idea. IIRC, the original concern was that devices may end up in D0-uninitialized if we

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-18 Thread Lan Tianyu
On 10/17/2013 07:38 PM, Rafael J. Wysocki wrote: Unfortunately, I don't see how we can fix this race in a satisfactory way and I'm starting to think that the whole resuming of dependent devices may be a bad idea. IIRC, the original concern was that devices may end up in D0-uninitialized if we

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-18 Thread Rafael J. Wysocki
On Friday, October 18, 2013 09:05:13 PM Lan Tianyu wrote: On 10/17/2013 07:38 PM, Rafael J. Wysocki wrote: Unfortunately, I don't see how we can fix this race in a satisfactory way and I'm starting to think that the whole resuming of dependent devices may be a bad idea. IIRC, the

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-17 Thread Rafael J. Wysocki
On Thursday, October 17, 2013 10:40:03 AM Lan Tianyu wrote: > On 2013年10月17日 09:02, Lan Tianyu wrote: > > On 2013年10月16日 20:42, Rafael J. Wysocki wrote: > >> On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: > >>> This is a multi-part message in MIME format. > >>>

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-17 Thread Lan Tianyu
On 2013年10月17日 10:40, Lan Tianyu wrote: > On 2013年10月17日 09:02, Lan Tianyu wrote: >> On 2013年10月16日 20:42, Rafael J. Wysocki wrote: >>> On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: This is a multi-part message in MIME format. --090400010209000300030201

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-17 Thread Lan Tianyu
On 2013年10月17日 10:40, Lan Tianyu wrote: On 2013年10月17日 09:02, Lan Tianyu wrote: On 2013年10月16日 20:42, Rafael J. Wysocki wrote: On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: This is a multi-part message in MIME format. --090400010209000300030201 Content-Type:

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-17 Thread Rafael J. Wysocki
On Thursday, October 17, 2013 10:40:03 AM Lan Tianyu wrote: On 2013年10月17日 09:02, Lan Tianyu wrote: On 2013年10月16日 20:42, Rafael J. Wysocki wrote: On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: This is a multi-part message in MIME format.

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-16 Thread Lan Tianyu
On 2013年10月17日 09:02, Lan Tianyu wrote: > On 2013年10月16日 20:42, Rafael J. Wysocki wrote: >> On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: >>> This is a multi-part message in MIME format. >>> --090400010209000300030201 >>> Content-Type: text/plain; charset=UTF-8 >>>

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-16 Thread Lan Tianyu
On 2013年10月16日 20:42, Rafael J. Wysocki wrote: > On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: >> This is a multi-part message in MIME format. >> --090400010209000300030201 >> Content-Type: text/plain; charset=UTF-8 >> Content-Transfer-Encoding: 8bit >> >> On 10/16/2013

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-16 Thread Rafael J. Wysocki
On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: > This is a multi-part message in MIME format. > --090400010209000300030201 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > On 10/16/2013 05:22 AM, Rafael J. Wysocki wrote: > > On Tuesday,

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-16 Thread Rafael J. Wysocki
On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: This is a multi-part message in MIME format. --090400010209000300030201 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10/16/2013 05:22 AM, Rafael J. Wysocki wrote: On Tuesday, October 15,

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-16 Thread Lan Tianyu
On 2013年10月16日 20:42, Rafael J. Wysocki wrote: On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: This is a multi-part message in MIME format. --090400010209000300030201 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10/16/2013 05:22 AM,

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-16 Thread Lan Tianyu
On 2013年10月17日 09:02, Lan Tianyu wrote: On 2013年10月16日 20:42, Rafael J. Wysocki wrote: On Wednesday, October 16, 2013 05:26:21 PM Lan Tianyu wrote: This is a multi-part message in MIME format. --090400010209000300030201 Content-Type: text/plain; charset=UTF-8

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-15 Thread Rafael J. Wysocki
On Tuesday, October 15, 2013 04:58:28 PM Lan Tianyu wrote: > On 2013年10月11日 19:19, Rafael J. Wysocki wrote: > > On Friday, October 11, 2013 04:16:25 PM tianyu@intel.com wrote: > >> From: Lan Tianyu > >> > >> Currently, when one power resource is turned on, devices owning it > >> will be

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-15 Thread Lan Tianyu
On 2013年10月11日 19:19, Rafael J. Wysocki wrote: On Friday, October 11, 2013 04:16:25 PM tianyu@intel.com wrote: From: Lan Tianyu Currently, when one power resource is turned on, devices owning it will be requested to resume regardless of their runtime pm status. ACPI power resource maybe

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-15 Thread Lan Tianyu
On 2013年10月11日 19:19, Rafael J. Wysocki wrote: On Friday, October 11, 2013 04:16:25 PM tianyu@intel.com wrote: From: Lan Tianyu tianyu@intel.com Currently, when one power resource is turned on, devices owning it will be requested to resume regardless of their runtime pm status. ACPI

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-15 Thread Rafael J. Wysocki
On Tuesday, October 15, 2013 04:58:28 PM Lan Tianyu wrote: On 2013年10月11日 19:19, Rafael J. Wysocki wrote: On Friday, October 11, 2013 04:16:25 PM tianyu@intel.com wrote: From: Lan Tianyu tianyu@intel.com Currently, when one power resource is turned on, devices owning it will be

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-11 Thread Rafael J. Wysocki
On Friday, October 11, 2013 04:16:25 PM tianyu@intel.com wrote: > From: Lan Tianyu > > Currently, when one power resource is turned on, devices owning it > will be requested to resume regardless of their runtime pm status. > ACPI power resource maybe turn on in some devices' runtime pm >

[PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-11 Thread tianyu . lan
From: Lan Tianyu Currently, when one power resource is turned on, devices owning it will be requested to resume regardless of their runtime pm status. ACPI power resource maybe turn on in some devices' runtime pm resume callback(E.G, usb port) while turning on the power resource will trigger one

Re: [PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-11 Thread Rafael J. Wysocki
On Friday, October 11, 2013 04:16:25 PM tianyu@intel.com wrote: From: Lan Tianyu tianyu@intel.com Currently, when one power resource is turned on, devices owning it will be requested to resume regardless of their runtime pm status. ACPI power resource maybe turn on in some devices'

[PATCH] ACPI/Power: Check physical device's runtime pm status before requesting to resume it

2013-10-11 Thread tianyu . lan
From: Lan Tianyu tianyu@intel.com Currently, when one power resource is turned on, devices owning it will be requested to resume regardless of their runtime pm status. ACPI power resource maybe turn on in some devices' runtime pm resume callback(E.G, usb port) while turning on the power