From b21413013bac141e5d97e922716bf6efbfafa401 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Fri, 23 Sep 2005 19:22:23 +0000 Subject: [PATCH] it's not allowed to spin 250ms git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14231 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/busses/usb/ohci.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/busses/usb/ohci.cpp b/src/add-ons/kernel/busses/usb/ohci.cpp index 48ead84e2f..5540eabaeb 100644 --- a/src/add-ons/kernel/busses/usb/ohci.cpp +++ b/src/add-ons/kernel/busses/usb/ohci.cpp @@ -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