mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
[USBOHCI]
- Finally fix the OHCI reset bug for real and remove hacks svn path=/trunk/; revision=55741
This commit is contained in:
parent
cb23c43428
commit
20008617a0
|
@ -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
|
||||
// an interrupt signals the reset completion
|
||||
//
|
||||
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);
|
||||
}
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
return STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue