Skip to content

Commit

Permalink
Update GPE handler removal, match behavior of handler install.
Browse files Browse the repository at this point in the history
The OriginallyEnabled check is not paired between AcpiInstallGpeHandler()
and AcpiRemoveGpeHandler(). This patch contains the code that is already in
the Linux kernel upstream. Lv Zheng.
  • Loading branch information
acpibob committed Sep 12, 2014
1 parent 4cbfee7 commit 967f314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/components/events/evxface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,8 @@ AcpiRemoveGpeHandler (
* enabled, it should be enabled at this point to restore the
* post-initialization configuration.
*/
if ((Handler->OriginalFlags & ACPI_GPE_DISPATCH_METHOD) &&
if (((Handler->OriginalFlags & ACPI_GPE_DISPATCH_METHOD) ||
(Handler->OriginalFlags & ACPI_GPE_DISPATCH_NOTIFY)) &&
Handler->OriginallyEnabled)
{
(void) AcpiEvAddGpeReference (GpeEventInfo);
Expand Down

0 comments on commit 967f314

Please sign in to comment.