Skip to content

Commit

Permalink
ACPI: EC / PM: Print additional debug message in acpi_ec_dispatch_gpe()
Browse files Browse the repository at this point in the history
Make acpi_ec_dispatch_gpe() print an additional debug message after
seeing the EC GPE status bit set to help diagnose wakeup-related
issues.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Rafael J. Wysocki committed Feb 14, 2022
1 parent 631e389 commit 977dc30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2081,8 +2081,11 @@ bool acpi_ec_dispatch_gpe(void)
*/
spin_lock_irq(&first_ec->lock);

if (acpi_ec_gpe_status_set(first_ec))
if (acpi_ec_gpe_status_set(first_ec)) {
pm_pr_dbg("ACPI EC GPE status set\n");

work_in_progress = advance_transaction(first_ec, false);
}

spin_unlock_irq(&first_ec->lock);

Expand Down

0 comments on commit 977dc30

Please sign in to comment.