Changeset 5f97ef44 in mainline for uspace/drv/bus/usb/uhci
- Timestamp:
- 2018-07-13T14:10:15Z (8 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)
- Location:
- uspace/drv/bus/usb/uhci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
r9912f49 r5f97ef44 280 280 /* Reset everything, who knows what touched it before us */ 281 281 pio_write_16(®isters->usbcmd, UHCI_CMD_GLOBAL_RESET); 282 async_usleep(50000); /* 50ms according to USB spec(root hub reset) */282 fibril_usleep(50000); /* 50ms according to USB spec(root hub reset) */ 283 283 pio_write_16(®isters->usbcmd, 0); 284 284 … … 286 286 pio_write_16(®isters->usbcmd, UHCI_CMD_HCRESET); 287 287 do { 288 async_usleep(10);288 fibril_usleep(10); 289 289 } while ((pio_read_16(®isters->usbcmd) & UHCI_CMD_HCRESET) != 0); 290 290 … … 405 405 * the buffers. 406 406 */ 407 async_usleep(20000);407 fibril_usleep(20000); 408 408 batch->base.error = EINTR; 409 409 batch->base.transferred_size = 0; … … 660 660 (void *) expected_pa, (void *) real_pa); 661 661 } 662 async_usleep(UHCI_DEBUGER_TIMEOUT);662 fibril_usleep(UHCI_DEBUGER_TIMEOUT); 663 663 } 664 664 return EOK; -
uspace/drv/bus/usb/uhci/uhci_rh.c
r9912f49 r5f97ef44 110 110 batch->dma_buffer.virt, batch->size, &batch->transferred_size); 111 111 if (batch->error == ENAK) 112 async_usleep(instance->base.endpoint_descriptor.poll_interval * 1000);112 fibril_usleep(instance->base.endpoint_descriptor.poll_interval * 1000); 113 113 //TODO This is flimsy, but we can't exit early because 114 114 //ENAK is technically an error condition … … 147 147 port_status |= STATUS_IN_RESET; 148 148 pio_write_16(port, port_status); 149 async_usleep(50000);149 fibril_usleep(50000); 150 150 port_status = pio_read_16(port); 151 151 port_status &= ~STATUS_IN_RESET;
Note:
See TracChangeset
for help on using the changeset viewer.
