mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[USBOHCI]
- Don't hardcode the device speed svn path=/branches/usb-bringup-trunk/; revision=55392
This commit is contained in:
parent
8e66575f08
commit
71b5a853dc
1 changed files with 6 additions and 4 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue