it's not allowed to spin 250ms

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14231 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2005-09-23 19:22:23 +00:00
parent 5b9ea6c314
commit b21413013b

View File

@ -277,7 +277,7 @@ OHCI::OHCI( pci_info *info , Stack *stack )
OHCI::pci_module->write_io_16( m_opreg_base + OHCI_COMMAND_STATUS,statusmsg | OHCI_OCR);
for (i = 0; i < 100 && (ctrlmsg & OHCI_IR); i++)
{
spin(100);
snooze(100);
ctrlmsg = OHCI::pci_module->read_io_16( m_opreg_base + OHCI_CONTROL);
}
if ((ctrlmsg & OHCI_IR) == 0)
@ -295,7 +295,7 @@ OHCI::OHCI( pci_info *info , Stack *stack )
if ((ctrlmsg & OHCI_HCFS_MASK) != OHCI_HCFS_OPERATIONAL)
{
OHCI::pci_module->write_io_16( m_opreg_base + OHCI_CONTROL,OHCI_HCFS_OPERATIONAL);
spin(250000);
snooze(250000);
}
}
else
@ -303,7 +303,7 @@ OHCI::OHCI( pci_info *info , Stack *stack )
dprintf("OHCI: cold started\n");
reset:
// Controller was cold started.
spin(100000);
snooze(100000);
}
// This reset should not be necessary according to the OHCI spec, but