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


Ignore:
Timestamp:
2018-07-13T14:10:15Z (6 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/ehci/hc.c

    r9912f49 r5f97ef44  
    408408                /* Wait until hc is halted */
    409409                while ((EHCI_RD(instance->registers->usbsts) & USB_STS_HC_HALTED_FLAG) == 0) {
    410                         async_usleep(1);
     410                        fibril_usleep(1);
    411411                }
    412412                usb_log_info("HC(%p): EHCI turned off.", instance);
     
    419419        usb_log_info("HC(%p): Waiting for HW reset.", instance);
    420420        while (EHCI_RD(instance->registers->usbcmd) & USB_CMD_HC_RESET_FLAG) {
    421                 async_usleep(1);
     421                fibril_usleep(1);
    422422        }
    423423        usb_log_debug("HC(%p): HW reset OK.", instance);
Note: See TracChangeset for help on using the changeset viewer.