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

Changeset fa9656b0 in mainline


Ignore:
Timestamp:
2014-01-24T21:06:46Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
b8191cc
Parents:
fdaaad00
Message:

ehci: Be easier on the cpu when waiting for port reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_rh.c

    rfdaaad00 rfa9656b0  
    391391                /* wait for reset to complete */
    392392                while (EHCI_RD(hub->registers->portsc[port]) &
    393                     USB_PORTSC_PORT_RESET_FLAG);
     393                    USB_PORTSC_PORT_RESET_FLAG) {
     394                    async_usleep(1);
     395                };
    394396                /* Handle port ownership, if the port is not enabled
    395397                 * after reset it's a full speed device */
Note: See TracChangeset for help on using the changeset viewer.