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

    r9912f49 r5f97ef44  
    110110                    batch->dma_buffer.virt, batch->size, &batch->transferred_size);
    111111                if (batch->error == ENAK)
    112                         async_usleep(instance->base.endpoint_descriptor.poll_interval * 1000);
     112                        fibril_usleep(instance->base.endpoint_descriptor.poll_interval * 1000);
    113113                //TODO This is flimsy, but we can't exit early because
    114114                //ENAK is technically an error condition
     
    147147        port_status |= STATUS_IN_RESET;
    148148        pio_write_16(port, port_status);
    149         async_usleep(50000);
     149        fibril_usleep(50000);
    150150        port_status = pio_read_16(port);
    151151        port_status &= ~STATUS_IN_RESET;
Note: See TracChangeset for help on using the changeset viewer.