audk/MdeModulePkg/Bus/Usb
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
..
UsbBotPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbBusDxe MdeModulePkg/UsbBusDxe: fix NOOPT build error 2021-12-23 01:27:49 +00:00
UsbBusPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbKbDxe MdeModulePkg/Usb/Keyboard.c: Don't request protocol before setting 2022-03-03 06:25:50 +00:00
UsbMassStorageDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbMouseAbsolutePointerDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbMouseDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00