]> git.baikalelectronics.ru Git - kernel.git/commit
HID: usbhid: Implement may_wakeup ll-driver callback
authorHans de Goede <hdegoede@redhat.com>
Sat, 29 May 2021 15:14:22 +0000 (17:14 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 25 Jun 2021 12:02:58 +0000 (14:02 +0200)
commitc457506f2d2a25bfeb1b37b008c734b0f223bd52
tree7ed75c165e5dcb910a408efa821244559028b274
parentbcffaf755cd16c232b9a99e8995764bffff98d39
HID: usbhid: Implement may_wakeup ll-driver callback

Without a ll-driver callback hid_hw_may_wakeup() will return:
device_may_wakeup(hdev->dev.parent), usb_hid_driver instantiated hid
devices have their parent set to the usb-interface to which the
usb_hid_driver is bound, but the power/wakeup* sysfs attributes are
part of the usb-device.

Add a may_wakeup ll-driver callback which calls device_may_wakeup()
on the usb-device instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c