Apply the USB_2_STEP_INIT option when using an XHCI controller.

This was added to the generic assign_address() method, but the XHCI
driver overrides that.
This commit is contained in:
Martin Whitaker
2022-08-05 20:48:24 +01:00
parent 1316c6c099
commit 148dfd4d54

View File

@@ -757,7 +757,7 @@ static bool assign_address(const usb_hcd_t *hcd, const usb_hub_t *hub, int port_
size_t fetch_length = sizeof(usb_device_desc_t);
uint32_t command_flags = 0;
if (device_speed < USB_SPEED_HIGH) {
if (device_speed < USB_SPEED_HIGH || usb_init_options & USB_2_STEP_INIT) {
fetch_length = 8;
command_flags = XHCI_TRB_BSR;
}