Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SetProtocol command to force devices to Report Mode (#361)
## Description USB HID specification 1.11 (https://www.usb.org/document-library/device-class-definition-hid-111) section 7.2.6 states: ``` When initialized, all devices default to report protocol. However the host should not make any assumptions about the device’s state and should set the desired protocol whenever initializing a device. ``` In testing actual devices, it has been observed that some actual endpoint HID devices come up in "boot protocol" rather than "report protocol." This PR implements the recommendation that the host (in this case, the UsbHidDxe driver) not make any assumptions about device state, and explicitly sets report protocol for devices that implement the "boot" interface subclass. The PR also makes a minor adjustment to debug verbosity. - [ ] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? ## How This Was Tested Verified with QEMU that command is sent; verified with hardware that has this issue that SetProtocol resolves it. ## Integration Instructions N/A
- Loading branch information