audk/MdeModulePkg/Bus/Usb/UsbKbDxe
Sean Rhodes 589d51df26 MdeModulePkg/Usb/Keyboard.c: Don't request protocol before setting
No need to check the interface protocol then conditionally setting,
just set it to BOOT_PROTOCOL and check for error.

This is what Linux does for HID devices as some don't follow the USB spec.
One example is the Aspeed BMC HID keyboard device, which adds a massive
boot delay without this patch as it doesn't respond to
'GetProtocolRequest'.

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
2022-03-03 06:25:50 +00:00
..
ComponentName.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EfiKey.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
EfiKey.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
KeyBoard.c MdeModulePkg/Usb/Keyboard.c: Don't request protocol before setting 2022-03-03 06:25:50 +00:00
KeyBoard.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbKbDxe.inf MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
UsbKbDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
UsbKbDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00