* [PATCH] ACPI / ACPICA: Disable GPEs during initialization
@ 2010-12-26 11:47 Rafael J. Wysocki
2010-12-26 22:05 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2010-12-26 11:47 UTC (permalink / raw)
To: Len Brown; +Cc: LKML, ACPI Devel Maling List, Linux-pm mailing list
From: Rafael J. Wysocki <rjw@sisk.pl>
GPEs with corresponding _Lxx/_Exx control methods need to be disabled
during initialization in case they have been enabled by the BIOS, so
that they don't fire up until they are enabled by acpi_update_gpes().
References: https://bugzilla.kernel.org/show_bug.cgi?id=25412
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
drivers/acpi/acpica/evgpeinit.c | 3 +++
1 file changed, 3 insertions(+)
Index: linux-2.6/drivers/acpi/acpica/evgpeinit.c
===================================================================
--- linux-2.6.orig/drivers/acpi/acpica/evgpeinit.c
+++ linux-2.6/drivers/acpi/acpica/evgpeinit.c
@@ -408,6 +408,9 @@ acpi_ev_match_gpe_method(acpi_handle obj
return_ACPI_STATUS(AE_OK);
}
+ /* Disable the GPE in case it's been enabled already. */
+ (void)acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_DISABLE);
+
/*
* Add the GPE information from above to the gpe_event_info block for
* use during dispatch of this GPE.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI / ACPICA: Disable GPEs during initialization
2010-12-26 11:47 [PATCH] ACPI / ACPICA: Disable GPEs during initialization Rafael J. Wysocki
@ 2010-12-26 22:05 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2010-12-26 22:05 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: LKML, ACPI Devel Maling List, Linux-pm mailing list
applied
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-26 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-26 11:47 [PATCH] ACPI / ACPICA: Disable GPEs during initialization Rafael J. Wysocki
2010-12-26 22:05 ` 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).