mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[USBHUB_NEW]
- Check if the port is usb 2.0 controller. In that case call the Usb2.0 initialize function - Prevents crash when used with usbohci svn path=/branches/usb-bringup/; revision=52036
This commit is contained in:
@@ -1559,11 +1559,28 @@ USBHUB_FdoHandlePnp(
|
||||
DPRINT1("Configuration Handle %x\n", HubDeviceExtension->ConfigurationHandle);
|
||||
|
||||
//
|
||||
// Initialize the Hub
|
||||
// check if function is available
|
||||
//
|
||||
Status = HubDeviceExtension->HubInterface.Initialize20Hub(HubInterfaceBusContext,
|
||||
HubDeviceExtension->RootHubHandle, 1);
|
||||
DPRINT1("Status %x\n", Status);
|
||||
if (HubDeviceExtension->UsbDInterface.IsDeviceHighSpeed)
|
||||
{
|
||||
//
|
||||
// is it high speed bus
|
||||
//
|
||||
if (HubDeviceExtension->UsbDInterface.IsDeviceHighSpeed(HubInterfaceBusContext))
|
||||
{
|
||||
//
|
||||
// initialize usb 2.0 hub
|
||||
//
|
||||
Status = HubDeviceExtension->HubInterface.Initialize20Hub(HubInterfaceBusContext,
|
||||
HubDeviceExtension->RootHubHandle, 1);
|
||||
DPRINT1("Status %x\n", Status);
|
||||
|
||||
//
|
||||
// FIXME handle error
|
||||
//
|
||||
ASSERT(Status == STATUS_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
ExFreePool(ConfigUrb);
|
||||
|
||||
@@ -1585,8 +1602,9 @@ USBHUB_FdoHandlePnp(
|
||||
}
|
||||
|
||||
DPRINT1("RootHubInitNotification %x\n", HubDeviceExtension->HubInterface.RootHubInitNotification);
|
||||
|
||||
//
|
||||
//
|
||||
// init roo hub notification
|
||||
//
|
||||
if (HubDeviceExtension->HubInterface.RootHubInitNotification)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user