Changeset 5f97ef44 in mainline for uspace/drv/bus/usb/ohci/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/ohci/hc.c

    r9912f49 r5f97ef44  
    425425                /* Hope that SMM actually knows its stuff or we can hang here */
    426426                while (OHCI_RD(instance->registers->control) & C_IR) {
    427                         async_usleep(1000);
     427                        fibril_usleep(1000);
    428428                }
    429429                usb_log_info("SMM driver: Ownership taken.");
    430430                C_HCFS_SET(instance->registers->control, C_HCFS_RESET);
    431                 async_usleep(50000);
     431                fibril_usleep(50000);
    432432                return EOK;
    433433        }
     
    443443                /* HC is suspended assert resume for 20ms */
    444444                C_HCFS_SET(instance->registers->control, C_HCFS_RESUME);
    445                 async_usleep(20000);
     445                fibril_usleep(20000);
    446446                usb_log_info("BIOS driver: HC resumed.");
    447447                return EOK;
     
    453453         */
    454454        usb_log_debug("Host controller found in reset state.");
    455         async_usleep(50000);
     455        fibril_usleep(50000);
    456456        return EOK;
    457457}
     
    479479        OHCI_WR(instance->registers->command_status, CS_HCR);
    480480        while (OHCI_RD(instance->registers->command_status) & CS_HCR) {
    481                 async_usleep(10);
     481                fibril_usleep(10);
    482482                time += 10;
    483483        }
Note: See TracChangeset for help on using the changeset viewer.