Searched hist:"978 e786c5e9bf538da0a4807539608a52d9be16b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/hid/usbhid/ |
H A D | hid-core.c | diff 978e786c5e9bf538da0a4807539608a52d9be16b Sat May 29 10:14:22 CDT 2021 Hans de Goede <hdegoede@redhat.com> 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>
|