From 20008617a0851ab5ddd5fa57c8dc7df51bbbdee2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 20 Feb 2012 09:00:09 +0000 Subject: [PATCH] [USBOHCI] - Finally fix the OHCI reset bug for real and remove hacks svn path=/trunk/; revision=55741 --- reactos/drivers/usb/usbohci/hardware.cpp | 32 +++--------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/reactos/drivers/usb/usbohci/hardware.cpp b/reactos/drivers/usb/usbohci/hardware.cpp index 5dfc129668c..4c40dd4de8a 100644 --- a/reactos/drivers/usb/usbohci/hardware.cpp +++ b/reactos/drivers/usb/usbohci/hardware.cpp @@ -1353,35 +1353,9 @@ CUSBHardwareDevice::SetPortFeature( // WRITE_REGISTER_ULONG((PULONG)((PUCHAR)m_Base + OHCI_RH_PORT_STATUS(PortId)), OHCI_RH_PORTSTATUS_PRS); - do - { - // - // read port status - // - Value = READ_REGISTER_ULONG((PULONG)((PUCHAR)m_Base + OHCI_RH_PORT_STATUS(PortId))); - - if ((Value & OHCI_RH_PORTSTATUS_PRS) == 0 && - (Value & OHCI_RH_PORTSTATUS_PRSC) != 0) - { - // - // reset is complete - // - break; - } - - // - // wait a bit - // - KeStallExecutionProcessor(100); - } while(TRUE); - - if (m_SCECallBack != NULL) - { - // - // issue callback - // - m_SCECallBack(m_SCEContext); - } + // + // an interrupt signals the reset completion + // return STATUS_SUCCESS; } return STATUS_SUCCESS;