projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c524559
)
Merge branch 'for-5.17/i2c-hid' into for-linus
author
Jiri Kosina
<jkosina@suse.cz>
Mon, 10 Jan 2022 08:56:27 +0000
(09:56 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 10 Jan 2022 08:56:27 +0000
(09:56 +0100)
- PM wakeup support for i2c-hid driver (Matthias Kaehlcke)
drivers/hid/i2c-hid/i2c-hid-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/i2c-hid/i2c-hid-core.c
b/drivers/hid/i2c-hid/i2c-hid-core.c
index be00e07df06c8753e42c0c111f4e7bade9366fd7..6726567d729761397b5bb12a85905fca98fd1e80 100644
(file)
--- a/
drivers/hid/i2c-hid/i2c-hid-core.c
+++ b/
drivers/hid/i2c-hid/i2c-hid-core.c
@@
-522,9
+522,12
@@
static void i2c_hid_get_input(struct i2c_hid *ihid)
i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);
- if (test_bit(I2C_HID_STARTED, &ihid->flags))
+ if (test_bit(I2C_HID_STARTED, &ihid->flags)) {
+ pm_wakeup_event(&ihid->client->dev, 0);
+
hid_input_report(ihid->hid, HID_INPUT_REPORT, ihid->inbuf + 2,
ret_size - 2, 1);
+ }
return;
}