Changeset 5f97ef44 in mainline for uspace/drv/bus/usb/uhci/hc.c


Ignore:
Timestamp:
2018-07-13T14:10:15Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
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)
Message:

Sleep is more natural as part of the fibril API.
(the implementation will move later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.c

    r9912f49 r5f97ef44  
    280280        /* Reset everything, who knows what touched it before us */
    281281        pio_write_16(&registers->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) */
    283283        pio_write_16(&registers->usbcmd, 0);
    284284
     
    286286        pio_write_16(&registers->usbcmd, UHCI_CMD_HCRESET);
    287287        do {
    288                 async_usleep(10);
     288                fibril_usleep(10);
    289289        } while ((pio_read_16(&registers->usbcmd) & UHCI_CMD_HCRESET) != 0);
    290290
     
    405405         * the buffers.
    406406         */
    407         async_usleep(20000);
     407        fibril_usleep(20000);
    408408        batch->base.error = EINTR;
    409409        batch->base.transferred_size = 0;
     
    660660                            (void *) expected_pa, (void *) real_pa);
    661661                }
    662                 async_usleep(UHCI_DEBUGER_TIMEOUT);
     662                fibril_usleep(UHCI_DEBUGER_TIMEOUT);
    663663        }
    664664        return EOK;
Note: See TracChangeset for help on using the changeset viewer.