Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 589d51df260465e2561979b8a988e77b0f32a6e8
      
https://github.com/tianocore/edk2/commit/589d51df260465e2561979b8a988e77b0f32a6e8
  Author: Sean Rhodes <[email protected]>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c

  Log Message:
  -----------
  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 <[email protected]>
Cc: Ray Ni <[email protected]>
Signed-off-by: Matt DeVillier <[email protected]>
Signed-off-by: Patrick Rudolph <[email protected]>
Signed-off-by: Sean Rhodes <[email protected]>
Reviewed-by: Hao A Wu <[email protected]>




_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to