Skip to content

Commit 906095a

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.17/i2c-hid' into for-linus
- PM wakeup support for i2c-hid driver (Matthias Kaehlcke)
2 parents c524559 + d951ae1 commit 906095a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/hid/i2c-hid/i2c-hid-core.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,12 @@ static void i2c_hid_get_input(struct i2c_hid *ihid)
522522

523523
i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);
524524

525-
if (test_bit(I2C_HID_STARTED, &ihid->flags))
525+
if (test_bit(I2C_HID_STARTED, &ihid->flags)) {
526+
pm_wakeup_event(&ihid->client->dev, 0);
527+
526528
hid_input_report(ihid->hid, HID_INPUT_REPORT, ihid->inbuf + 2,
527529
ret_size - 2, 1);
530+
}
528531

529532
return;
530533
}

0 commit comments

Comments
 (0)