Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1651702
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH v3 3/5] ACPI: button: Add lid event type debugging messages |
| Date | 2017-05-27 03:40 +0200 |
| Message-ID | <tLyRY-4YN-23@gated-at.bofh.it> (permalink) |
| References | <tLyIj-4Vw-49@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch adds very useful debugging information to lid events.
These messages and with ec_log_drv() can be used to demonstrate the order
between acpi_ec_resume() and acpi_button_resume().
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
---
drivers/acpi/button.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index a72f5bf..d3f90c6 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -201,12 +201,17 @@ static int acpi_lid_notify_state(struct acpi_device *device,
if (!state) {
input_report_switch(button->input, SW_LID, state);
input_sync(button->input);
+ pr_debug("faked open complement event.\n");
}
}
/* Send the platform triggered reliable event */
input_report_switch(button->input, SW_LID, !state);
input_sync(button->input);
+ if (bios_notify)
+ pr_debug("notified %s event.\n", state ? "open" : "close");
+ else
+ pr_debug("faked %s event.\n", state ? "open" : "close");
button->last_state = !!state;
button->last_time = ktime_get();
button->last_is_bios = bios_notify;
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC PATCH v3 3/5] ACPI: button: Add lid event type debugging messages Lv Zheng <lv.zheng@intel.com> - 2017-05-27 03:40 +0200
csiph-web