xhci: fix hub descriptor command request
The command to get the hub descriptor needs to be a class request and was incorrect causing a Stall error for the hub. The the driver does not handle a stall error yet, causing odd behavior. Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -1349,7 +1349,7 @@ XHCI::AllocateDevice(Hub *parent, int8 hubAddress, uint8 hubPort,
|
||||
size_t actualLength = 0;
|
||||
usb_hub_descriptor hubDescriptor;
|
||||
pipe.SendRequest(
|
||||
USB_REQTYPE_DEVICE_IN | USB_REQTYPE_STANDARD, // type
|
||||
USB_REQTYPE_DEVICE_IN | USB_REQTYPE_CLASS, // type
|
||||
USB_REQUEST_GET_DESCRIPTOR, // request
|
||||
USB_DESCRIPTOR_HUB << 8, // value
|
||||
0, // index
|
||||
|
||||
Reference in New Issue
Block a user