Author: cgutman
Date: Mon Feb 20 09:00:09 2012
New Revision: 55741

URL: http://svn.reactos.org/svn/reactos?rev=55741&view=rev
Log:
[USBOHCI]
- Finally fix the OHCI reset bug for real and remove hacks

Modified:
    trunk/reactos/drivers/usb/usbohci/hardware.cpp

Modified: trunk/reactos/drivers/usb/usbohci/hardware.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/hardware.cpp?rev=55741&r1=55740&r2=55741&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/hardware.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/hardware.cpp [iso-8859-1] Mon Feb 20 
09:00:09 2012
@@ -1353,35 +1353,9 @@
         //
         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;


Reply via email to