Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b59fb7ef authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

Merge branch 'acpica' into acpi

* acpica:
  ACPICA: Clear status of GPEs before enabling them
parents aa9aaa4d c8b1917c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);
}