summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-04 23:08:47 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-04-04 23:08:47 +0300
commitb59fb7ef5240c301ca8b5b70d4298c0f053bb0c3 (patch)
treec8e08b455faf8801e31fa030e18c23df50b1bfd3 /drivers/acpi
parentaa9aaa4d61c0048d3faad056893cd7860bbc084c (diff)
parentc8b1917c8987a6fa3695d479b4d60fbbbc3e537b (diff)
downloadlinux-b59fb7ef5240c301ca8b5b70d4298c0f053bb0c3.tar.xz
Merge branch 'acpica' into acpi
* acpica: ACPICA: Clear status of GPEs before enabling them
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/acpica/evgpe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index 62d3aa74277b..5e9d7348c16f 100644
--- a/drivers/acpi/acpica/evgpe.c
+++ b/drivers/acpi/acpica/evgpe.c
@@ -81,8 +81,12 @@ acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info)
ACPI_FUNCTION_TRACE(ev_enable_gpe);
- /* Enable the requested GPE */
+ /* Clear the GPE status */
+ status = acpi_hw_clear_gpe(gpe_event_info);
+ if (ACPI_FAILURE(status))
+ return_ACPI_STATUS(status);
+ /* Enable the requested GPE */
status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_ENABLE);
return_ACPI_STATUS(status);
}