Commit 64fc6e1
committed
HID: i2c: let RMI devices decide what constitutes wakeup event
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122844
Upstream Status: since v6.0.16
Tested: with the hid-tools test suite and some hardware
commit ea829fb
Author: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: Fri Nov 18 09:02:45 2022 -0800
HID: i2c: let RMI devices decide what constitutes wakeup event
[ Upstream commit 9984fbf ]
HID-RMI is special in the sense that it does not carry HID events
directly, but rather uses HID protocol as a wrapper/transport for RMI
protocol. Therefore we should not assume that all data coming from the
device via interrupt is associated with user activity and report wakeup
event indiscriminately, but rather let HID-RMI do that when appropriate.
HID-RMI devices tag responses to the commands issued by the host as
RMI_READ_DATA_REPORT_ID whereas motion and other input events from the
device are tagged as RMI_ATTN_REPORT_ID. Change hid-rmi to report wakeup
events when receiving the latter packets. This allows ChromeOS to
accurately identify wakeup source and make correct decision on the mode
of the resume the system should take ("dark" where the display stays off
vs normal one).
Fixes: d951ae1 ("HID: i2c-hid: Report wakeup events")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Conflicts:
drivers/hid/hid-rmi.c: conflicts with the RHEL shipped version
(extra non upstream commit 518428c "Input: rmi4 - remove the need for artificial IRQ in case of HID")
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>1 parent 7c26e09 commit 64fc6e1
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| |||
0 commit comments