* Re: [PATCH] ACPI: Do not disable power resources w/o referencies on resume
[not found] <E3C0BCA40296C347AF7142161DB9FC82B6FC0D@mssmsx411>
@ 2007-03-07 8:52 ` Len Brown
0 siblings, 0 replies; only message in thread
From: Len Brown @ 2007-03-07 8:52 UTC (permalink / raw)
To: Karasyov, Konstantin A, linux-acpi
Applied
thanks,
-Len
Subject: ACPI: ThinkPad Z60m: usb mouse stops working after suspend to RAM
From: Konstantin Karasyov <konstantin.a.karasyov@intel.com>
(http://www.mail-archive.com/linux-acpi@vger.kernel.org/msg05270.html):
References : http://lkml.org/lkml/2007/2/21/413
http://lkml.org/lkml/2007/2/28/172
Submitter : Arkadiusz Miskiewicz <arekm@maven.pl>
Caused-By : Konstantin Karasyov <konstantin.a.karasyov@intel.com>
commit 0a6139027f3986162233adc17285151e78b39cac
Do not disable power resources on resume even if there are no devices referencing it.
Signed-off-by: Konstantin Karasyov <konstantin.a.karasyov@intel.com>
---
drivers/acpi/power.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 8df03b0..cb5ddb9 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -688,13 +688,6 @@ static int acpi_power_resume(struct acpi_device *device)
return result;
mutex_lock(&resource->resource_lock);
- if ((resource->state == ACPI_POWER_RESOURCE_STATE_ON) &&
- list_empty(&resource->reference)) {
- mutex_unlock(&resource->resource_lock);
- result = acpi_power_off_device(device->handle, NULL);
- return result;
- }
-
if ((resource->state == ACPI_POWER_RESOURCE_STATE_OFF) &&
!list_empty(&resource->reference)) {
ref = container_of(resource->reference.next, struct acpi_power_reference, node);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-07 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E3C0BCA40296C347AF7142161DB9FC82B6FC0D@mssmsx411>
2007-03-07 8:52 ` [PATCH] ACPI: Do not disable power resources w/o referencies on resume Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).