Changeset 53a9d02 in mainline for uspace/lib/usbhost/src/usb2_bus.c


Ignore:
Timestamp:
2018-01-11T09:17:43Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30fc56f
Parents:
17783bf
Message:

usb: fix errors introduced by recent changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/usb2_bus.c

    r17783bf r53a9d02  
    106106 *
    107107 * Reserve address, configure the control EP, issue a SET_ADDRESS command.
    108  * Configure the device with the new address, mark the device as online.
     108 * Configure the device with the new address,
    109109 */
    110110static int address_device(device_t *dev)
     
    160160                goto err_address;
    161161        }
    162         endpoint_del_ref(default_ep);
    163162
    164163        dev->address = address;
     
    173172        }
    174173
    175         /* From now on, the device is officially online, yay! */
    176         fibril_mutex_lock(&dev->guard);
    177         dev->online = true;
    178         fibril_mutex_unlock(&dev->guard);
    179 
    180174        return EOK;
    181175
    182176err_default_control_ep:
    183177        bus_endpoint_remove(default_ep);
    184         endpoint_del_ref(default_ep);
    185178err_address:
    186179        release_address(bus, address);
     
    235228{
    236229        usb2_bus_t *bus = bus_to_usb2_bus(ep->device->bus);
    237         assert(fibril_mutex_is_locked(&bus->base.guard));
     230        assert(fibril_mutex_is_locked(&ep->device->guard));
    238231        assert(ep);
    239232
Note: See TracChangeset for help on using the changeset viewer.