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:
Greg Crain
2017-11-29 17:40:02 +01:00
committed by Jérôme Duval
parent e96835a9a4
commit af0c1fa658
+1 -1
View File
@@ -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