Changeset 5f97ef44 in mainline for uspace/drv/bus/usb/xhci


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)

Location:
uspace/drv/bus/usb/xhci
Files:
2 edited

Legend:

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

    r9912f49 r5f97ef44  
    430430                        return XHCI_REG_RD(hc->legsup, XHCI_LEGSUP_SEM_OS) == 1 ? EOK : EIO;
    431431                }
    432                 async_usleep(XHCI_LEGSUP_POLLING_DELAY_1MS);
     432                fibril_usleep(XHCI_LEGSUP_POLLING_DELAY_1MS);
    433433        }
    434434        usb_log_error("BIOS did not release XHCI legacy hold!");
  • uspace/drv/bus/usb/xhci/hw_struct/common.h

    r9912f49 r5f97ef44  
    103103
    104104        for (; retries > 0 && value != expected; --retries) {
    105                 async_usleep(10000);
     105                fibril_usleep(10000);
    106106                value = *reg & mask;
    107107        }
Note: See TracChangeset for help on using the changeset viewer.