Author: janderwald
Date: Fri Feb 3 11:29:03 2012
New Revision: 55392
URL:
http://svn.reactos.org/svn/reactos?rev=55392&view=rev
Log:
[USBOHCI]
- Don't hardcode the device speed
Modified:
branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] Fri Feb 3
11:29:03 2012
@@ -19,7 +19,8 @@
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 @@
//
// This is a new device
//
- Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL);
+ Status = CreateUsbChildDeviceObject(DeviceObject, PortId, NULL,
PortStatus.Status);
}
}
@@ -1149,7 +1150,8 @@
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 @@
Status = HubInterface->CreateUsbDevice(HubInterfaceBusContext,
(PVOID)&UsbChildExtension->UsbDeviceHandle,
HubDeviceExtension->RootHubHandle,
- 0x501, //hack
+ PortStatus,
PortId);
if (!NT_SUCCESS(Status))
{