Skip to content

Commit

Permalink
ACPI: EC: PM: Make acpi_ec_dispatch_gpe() print debug message
Browse files Browse the repository at this point in the history
Add a pm_pr_dbg() debug statement to acpi_ec_dispatch_gpe() to print
a message when the EC GPE has been dispatched (because its status
was set).

Signed-off-by: Rafael J. Wysocki <[email protected]>
Tested-by: Kai-Heng Feng <[email protected]>
  • Loading branch information
rafaeljw committed Aug 8, 2019
1 parent d758940 commit 29113f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,11 @@ bool acpi_ec_dispatch_gpe(void)
return false;

ret = acpi_dispatch_gpe(NULL, first_ec->gpe);
return ret == ACPI_INTERRUPT_HANDLED;
if (ret == ACPI_INTERRUPT_HANDLED) {
pm_pr_dbg("EC GPE dispatched\n");
return true;
}
return false;
}
#endif /* CONFIG_PM_SLEEP */

Expand Down

0 comments on commit 29113f2

Please sign in to comment.