From 71b5a853dc8504eb40d6d0c49f95dc4e8c499679 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Fri, 3 Feb 2012 11:29:03 +0000 Subject: [PATCH] [USBOHCI] - Don't hardcode the device speed svn path=/branches/usb-bringup-trunk/; revision=55392 --- drivers/usb/usbhub_new/fdo.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/usb/usbhub_new/fdo.c b/drivers/usb/usbhub_new/fdo.c index 5497c3e5318..89b178744bd 100644 --- a/drivers/usb/usbhub_new/fdo.c +++ b/drivers/usb/usbhub_new/fdo.c @@ -19,7 +19,8 @@ NTSTATUS CreateUsbChildDeviceObject( IN PDEVICE_OBJECT UsbHubDeviceObject, IN LONG PortId, - OUT PDEVICE_OBJECT *UsbChildDeviceObject); + OUT PDEVICE_OBJECT *UsbChildDeviceObject, + IN ULONG PortStatus); NTSTATUS DestroyUsbChildDeviceObject( @@ -402,7 +403,7 @@ DeviceStatusChangeThread( // // This is a new device // - Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL); + Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL, PortStatus.Status); } } @@ -1149,7 +1150,8 @@ NTSTATUS CreateUsbChildDeviceObject( IN PDEVICE_OBJECT UsbHubDeviceObject, IN LONG PortId, - OUT PDEVICE_OBJECT *UsbChildDeviceObject) + OUT PDEVICE_OBJECT *UsbChildDeviceObject, + IN ULONG PortStatus) { NTSTATUS Status; PDEVICE_OBJECT RootHubDeviceObject, NewChildDeviceObject; @@ -1252,7 +1254,7 @@ CreateUsbChildDeviceObject( Status = HubInterface->CreateUsbDevice(HubInterfaceBusContext, (PVOID)&UsbChildExtension->UsbDeviceHandle, HubDeviceExtension->RootHubHandle, - 0x501, //hack + PortStatus, PortId); if (!NT_SUCCESS(Status)) { -- 2.17.1