Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c0cea918 in mainline for uspace/drv/uhci-rhd/port.c


Ignore:
Timestamp:
2011-04-14T08:12:48Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
5f7c846
Parents:
540abef
Message:

Wait for port to become enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.c

    r540abef rc0cea918  
    310310        /* Write new value. */
    311311        uhci_port_write_status(port, port_status);
     312
     313        /* Wait for port to become enabled */
     314        do {
     315                async_usleep(1000);
     316                port_status = uhci_port_read_status(port);
     317        } while ((port_status & STATUS_CONNECTED) &&
     318            !(port_status & STATUS_ENABLED));
    312319
    313320        usb_log_debug("%s: %sabled port.\n",
Note: See TracChangeset for help on using the changeset viewer.