]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: f_hid: added GET_IDLE and SET_IDLE handlers
authorMaxim Devaev <mdevaev@gmail.com>
Wed, 21 Jul 2021 18:03:51 +0000 (21:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:21:00 +0000 (13:21 +0200)
commitf780a9580cd2a8ebc3f36e2e244d015459e268ea
treebb5a56472e4ff103fe12069445edeb201480a87d
parent134e27da543d1e9f3c3b988c40e20e1269423bff
usb: gadget: f_hid: added GET_IDLE and SET_IDLE handlers

commit afcff6dc690e24d636a41fd4bee6057e7c70eebd upstream.

The USB HID standard declares mandatory support for GET_IDLE and SET_IDLE
requests for Boot Keyboard. Most hosts can handle their absence, but others
like some old/strange UEFIs and BIOSes consider this a critical error
and refuse to work with f_hid.

This primitive implementation of saving and returning idle is sufficient
to meet the requirements of the standard and these devices.

Acked-by: Felipe Balbi <balbi@kernel.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Maxim Devaev <mdevaev@gmail.com>
Link: https://lore.kernel.org/r/20210721180351.129450-1-mdevaev@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_hid.c