Changeset 5f97ef44 in mainline for uspace/drv/bus/usb/ohci/hc.c
- Timestamp:
- 2018-07-13T14:10:15Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3787a0
- Parents:
- 9912f49
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:08:57)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-13 14:10:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.c
r9912f49 r5f97ef44 425 425 /* Hope that SMM actually knows its stuff or we can hang here */ 426 426 while (OHCI_RD(instance->registers->control) & C_IR) { 427 async_usleep(1000);427 fibril_usleep(1000); 428 428 } 429 429 usb_log_info("SMM driver: Ownership taken."); 430 430 C_HCFS_SET(instance->registers->control, C_HCFS_RESET); 431 async_usleep(50000);431 fibril_usleep(50000); 432 432 return EOK; 433 433 } … … 443 443 /* HC is suspended assert resume for 20ms */ 444 444 C_HCFS_SET(instance->registers->control, C_HCFS_RESUME); 445 async_usleep(20000);445 fibril_usleep(20000); 446 446 usb_log_info("BIOS driver: HC resumed."); 447 447 return EOK; … … 453 453 */ 454 454 usb_log_debug("Host controller found in reset state."); 455 async_usleep(50000);455 fibril_usleep(50000); 456 456 return EOK; 457 457 } … … 479 479 OHCI_WR(instance->registers->command_status, CS_HCR); 480 480 while (OHCI_RD(instance->registers->command_status) & CS_HCR) { 481 async_usleep(10);481 fibril_usleep(10); 482 482 time += 10; 483 483 }
Note:
See TracChangeset
for help on using the changeset viewer.