Changeset eeca8a6 in mainline for uspace/drv/bus/usb/usbhub/port.c


Ignore:
Timestamp:
2018-01-16T19:22:58Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4603b35
Parents:
47e9494
Message:

usb: speed moved from default address reservation to enumeration callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.c

    r47e9494 reeca8a6  
    246246         * TODO: Make the request synchronous.
    247247         */
    248         while ((err = usbhc_reserve_default_address(exch, port->speed)) == EAGAIN) {
     248        while ((err = usbhc_reserve_default_address(exch)) == EAGAIN) {
    249249                fibril_condvar_wait_timeout(&port->state_cv, &port->guard, 500000);
    250250                if (port->state != PORT_CONNECTED) {
     
    271271        port_log(debug, port, "Port reset, enumerating device.");
    272272
    273         if ((err = usbhc_device_enumerate(exch, port->port_number))) {
     273        if ((err = usbhc_device_enumerate(exch, port->port_number, port->speed))) {
    274274                port_log(error, port, "Failed to enumerate device: %s", str_error(err));
    275275                port_change_state(port, PORT_DISABLED);
Note: See TracChangeset for help on using the changeset viewer.