]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ACPI / ACPICA: Disable GPEs during initialization
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 26 Dec 2010 11:47:06 +0000 (12:47 +0100)
committerLen Brown <len.brown@intel.com>
Sun, 26 Dec 2010 22:02:55 +0000 (17:02 -0500)
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>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/evgpeinit.c

index 2c7def95f721c6d08596c9ce852a3ac4a1c54e38..4c8dea513b66adeea7881d7f541237c812e5bf14 100644 (file)
@@ -408,6 +408,9 @@ acpi_ev_match_gpe_method(acpi_handle obj_handle,
                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.