From b43c3d21c0d8427e924ef175a4c2477b635ddd69 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 21 Feb 2012 20:32:48 +0000 Subject: [PATCH] [USBOHCI] - Fix indication of USB_PORT_STATUS_RESET changes - Fixes premature completion of resets causing assertions to fail svn path=/trunk/; revision=55792 --- reactos/drivers/usb/usbohci/hardware.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reactos/drivers/usb/usbohci/hardware.cpp b/reactos/drivers/usb/usbohci/hardware.cpp index 4c40dd4de8a..c38d19531a7 100644 --- a/reactos/drivers/usb/usbohci/hardware.cpp +++ b/reactos/drivers/usb/usbohci/hardware.cpp @@ -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;