[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1334641676-14566-5-git-send-email-ming.m.lin@intel.com>
Date: Tue, 17 Apr 2012 13:47:54 +0800
From: Lin Ming <ming.m.lin@...el.com>
To: "Rafael J. Wysocki" <rjw@...k.pl>, Len Brown <lenb@...nel.og>
Cc: linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org,
Zhang Rui <rui.zhang@...el.com>,
Huang Ying <huang.ying.caritas@...il.com>,
Aaron Lu <aaron.lu@....com>
Subject: [PATCH 4/6] ACPI: Fix power resource's device power state when it's off
Power resource's device power state should be
ACPI_STATE_D3_COLD when it's off.
Signed-off-by: Lin Ming <ming.m.lin@...el.com>
---
drivers/acpi/power.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 27a2bad..d6065110 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -300,7 +300,7 @@ static int acpi_power_off(acpi_handle handle)
result = -ENODEV;
} else {
/* Update the power resource's _device_ power state */
- resource->device->power.state = ACPI_STATE_D3;
+ resource->device->power.state = ACPI_STATE_D3_COLD;
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
"Power resource [%s] turned off\n",
@@ -735,7 +735,7 @@ static int acpi_power_add(struct acpi_device *device)
device->power.state = ACPI_STATE_D0;
break;
case ACPI_POWER_RESOURCE_STATE_OFF:
- device->power.state = ACPI_STATE_D3;
+ device->power.state = ACPI_STATE_D3_COLD;
break;
default:
device->power.state = ACPI_STATE_UNKNOWN;
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists