[USBOHCI]

- Fix indication of USB_PORT_STATUS_RESET changes
- Fixes premature completion of resets causing assertions to fail

svn path=/trunk/; revision=55792
This commit is contained in:
Cameron Gutman 2012-02-21 20:32:48 +00:00
parent 0bbab987c0
commit b43c3d21c0

View file

@ -1185,14 +1185,11 @@ CUSBHardwareDevice::GetPortStatus(
if (Value & OHCI_RH_PORTSTATUS_PSSC)
*PortChange |= USB_PORT_STATUS_ENABLE;
// port reset started (change bit only set at completion)
// port reset started
if (Value & OHCI_RH_PORTSTATUS_PRS)
{
*PortStatus |= USB_PORT_STATUS_RESET;
*PortChange |= USB_PORT_STATUS_RESET;
}
// port reset ended (change bit only set at completion)
// port reset ended
if (Value & OHCI_RH_PORTSTATUS_PRSC)
*PortChange |= USB_PORT_STATUS_RESET;