2022-02-02 07:57:08

by Rafael J. Wysocki

[permalink] [raw]
Subject: [PATCH 1/2] ACPI: PM: Print additional debug message in acpi_s2idle_wake()

From: Rafael J. Wysocki <[email protected]>

Make acpi_s2idle_wake() print an additional debug message when the
SCI is going to be rearmed for system wakeup to help diagnose
wakeup-related issues.

Signed-off-by: Rafael J. Wysocki <[email protected]>
---
drivers/acpi/sleep.c | 2 ++
1 file changed, 2 insertions(+)

Index: linux-pm/drivers/acpi/sleep.c
===================================================================
--- linux-pm.orig/drivers/acpi/sleep.c
+++ linux-pm/drivers/acpi/sleep.c
@@ -764,6 +764,8 @@ bool acpi_s2idle_wake(void)
return true;
}

+ pm_pr_dbg("Rearming ACPI SCI for wakeup\n");
+
rearm_wake_irq(acpi_sci_irq);
}