diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-07-31 12:06:00 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-08 12:25:53 +0300 |
commit | 29113f2f0a7d8d5332bfdfdfca995c06d0896e83 (patch) | |
tree | 4435d0d164c818065c009b26c4dd14c31bd697d6 /drivers/acpi/ec.c | |
parent | d7589404932be148fabe696b56b7c391bad6bdb1 (diff) | |
download | linux-29113f2f0a7d8d5332bfdfdfca995c06d0896e83.tar.xz |
ACPI: EC: PM: Make acpi_ec_dispatch_gpe() print debug message
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 <rafael.j.wysocki@intel.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 8d7247b4441f..58597ec813eb 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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 */ |