[USB-BRINGUP-TRUNK]
authorCameron Gutman <aicommander@gmail.com>
Mon, 23 Jan 2012 16:06:32 +0000 (16:06 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 23 Jan 2012 16:06:32 +0000 (16:06 +0000)
- Store correct device power state for PowerSystemWorking

svn path=/branches/usb-bringup-trunk/; revision=55115

drivers/usb/usbehci_new/hub_controller.cpp
drivers/usb/usbhub_new/pdo.c
drivers/usb/usbohci/hub_controller.cpp

index 4e071d1..1876624 100644 (file)
@@ -593,7 +593,7 @@ CHubController::HandlePnp(
             DeviceCapabilities->HardwareDisabled = FALSE;
             DeviceCapabilities->NoDisplayInUI = FALSE;
             DeviceCapabilities->DeviceState[0] = PowerDeviceD0;
-            for (Index = 0; Index < PowerSystemMaximum; Index++)
+            for (Index = 1; Index < PowerSystemMaximum; Index++)
                 DeviceCapabilities->DeviceState[Index] = PowerDeviceD3;
             DeviceCapabilities->DeviceWake = PowerDeviceUnspecified;
             DeviceCapabilities->D1Latency = 0;
index 4c6e4de..170e132 100644 (file)
@@ -506,7 +506,7 @@ USBHUB_PdoHandlePnp(
             DeviceCapabilities->Address = UsbChildExtension->PortNumber;
             DeviceCapabilities->UINumber = 0;
             DeviceCapabilities->DeviceState[0] = PowerDeviceD0;
-            for (i = 0; i < PowerSystemMaximum; i++)
+            for (i = 1; i < PowerSystemMaximum; i++)
                 DeviceCapabilities->DeviceState[i] = PowerDeviceD3;
             //DeviceCapabilities->DeviceWake = PowerDeviceUndefined;
             DeviceCapabilities->D1Latency = 0;
index 5336cf0..511cf3e 100644 (file)
@@ -593,7 +593,7 @@ CHubController::HandlePnp(
             DeviceCapabilities->HardwareDisabled = FALSE;
             DeviceCapabilities->NoDisplayInUI = FALSE;
             DeviceCapabilities->DeviceState[0] = PowerDeviceD0;
-            for (Index = 0; Index < PowerSystemMaximum; Index++)
+            for (Index = 1; Index < PowerSystemMaximum; Index++)
                 DeviceCapabilities->DeviceState[Index] = PowerDeviceD3;
             DeviceCapabilities->DeviceWake = PowerDeviceUnspecified;
             DeviceCapabilities->D1Latency = 0;