ACPI: EC: PM: Make acpi_ec_dispatch_gpe() print debug message
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Jul 2019 09:06:00 +0000 (11:06 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Aug 2019 09:25:53 +0000 (11:25 +0200)
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>
drivers/acpi/ec.c

index 8d7247b4441f065e3a9e38063f81680c2d481160..58597ec813eb6580531dbf68bc3b8d82614301c2 100644 (file)
@@ -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 */