Skip to contentSkip to conversation

ACPI: PM: Print debug messages when enabling GPEs for wakeup

PATCH New Rafael J. Wysocki 1 participant 1 message Apr 3, 2019 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: PM: Print debug messages when enabling GPEs for wakeup

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

In sufficiently complicated GPE configurations it is hard to determine which GPE could be the source of system wakeup from a sleep state, so make __acpi_device_wakeup_enable() print that information to the kernel log if debugging is enabled.

---
 drivers/acpi/device_pm.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/acpi/device_pm.c +3 -0
Index: linux-pm/drivers/acpi/device_pm.c
===================================================================
@@ -728,6 +728,9 @@ static int __acpi_device_wakeup_enable(s
 		goto out;
 	}
 
+	acpi_handle_debug(adev->handle, "GPE%2X enabled for wakeup\n",
+			  (unsigned int)wakeup->gpe_number);
+
 inc:
 	wakeup->enable_count++;