summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-07-31 11:06:00 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-08-08 11:25:53 +0200
commit29113f2f0a7d8d5332bfdfdfca995c06d0896e83 (patch)
tree4435d0d164c818065c009b26c4dd14c31bd697d6 /drivers/acpi
parentACPI: EC: PM: Consolidate some code depending on PM_SLEEP (diff)
downloadlinux-29113f2f0a7d8d5332bfdfdfca995c06d0896e83.tar.xz
linux-29113f2f0a7d8d5332bfdfdfca995c06d0896e83.zip
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')
-rw-r--r--drivers/acpi/ec.c6
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 */