diff options
author | Jiri Kosina <jkosina@suse.cz> | 2021-06-30 10:15:15 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-06-30 10:15:15 +0300 |
commit | b3e29642548258c7cd2cb3326a776fff84cd6b69 (patch) | |
tree | 1c5da8119d9792ebf4d11ea4787c7529e97c8e53 /drivers/hid/usbhid | |
parent | 8f4ef88ebadefcf16b7f616f8af940465c44bea2 (diff) | |
parent | 498d0ddc6ae931e4e79a57c56b6dd4576aa435b6 (diff) | |
download | linux-b3e29642548258c7cd2cb3326a776fff84cd6b69.tar.xz |
Merge branch 'for-5.14/multitouch' into for-linus
- patch series that ensures that hid-multitouch driver disables touch and
button-press reporting on hid-mt devices during suspend when the device is
not configured as a wakeup-source, from Hans de Goede
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 4e9077363c96..06130dc431a0 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -1304,6 +1304,13 @@ static int usbhid_idle(struct hid_device *hid, int report, int idle, return hid_set_idle(dev, ifnum, report, idle); } +static bool usbhid_may_wakeup(struct hid_device *hid) +{ + struct usb_device *dev = hid_to_usb_dev(hid); + + return device_may_wakeup(&dev->dev); +} + struct hid_ll_driver usb_hid_driver = { .parse = usbhid_parse, .start = usbhid_start, @@ -1316,6 +1323,7 @@ struct hid_ll_driver usb_hid_driver = { .raw_request = usbhid_raw_request, .output_report = usbhid_output_report, .idle = usbhid_idle, + .may_wakeup = usbhid_may_wakeup, }; EXPORT_SYMBOL_GPL(usb_hid_driver); |