aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2010-07-07 18:45:34 -0400
committerLen Brown <len.brown@intel.com>2010-07-12 14:18:39 -0400
commit9ce10df8d83d0528e80cd319b35ac5f6812b4f62 (patch)
treef730157d4cc2058dbe400d648c4fb38a63aa031a
parent9874647ba1bdf3e1af25e079070a00676f60f2f0 (diff)
ACPI / ACPICA: Fail acpi_gpe_wakeup() if ACPI_GPE_CAN_WAKE is unset
Make acpi_gpe_wakeup() return error code for GPEs whose ACPI_GPE_CAN_WAKE flag is not set. This way acpi_gpe_wakeup() will only wake for the GPEs reported by the host OS as "wakeup" ones with the help of acpi_gpe_can_wake(). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/acpi/acpica/evxfevnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/evxfevnt.c b/drivers/acpi/acpica/evxfevnt.c
index bd06fad83e7a..53d591a11138 100644
--- a/drivers/acpi/acpica/evxfevnt.c
+++ b/drivers/acpi/acpica/evxfevnt.c
@@ -236,7 +236,7 @@ acpi_status acpi_gpe_wakeup(acpi_handle gpe_device, u32 gpe_number, u8 action)
236 /* Ensure that we have a valid GPE number */ 236 /* Ensure that we have a valid GPE number */
237 237
238 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number); 238 gpe_event_info = acpi_ev_get_gpe_event_info(gpe_device, gpe_number);
239 if (!gpe_event_info) { 239 if (!gpe_event_info || !(gpe_event_info->flags & ACPI_GPE_CAN_WAKE)) {
240 status = AE_BAD_PARAMETER; 240 status = AE_BAD_PARAMETER;
241 goto unlock_and_exit; 241 goto unlock_and_exit;
242 } 242 }