Changeset 53a9d02 in mainline for uspace/lib/usbhost/src/usb2_bus.c
- Timestamp:
- 2018-01-11T09:17:43Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30fc56f
- Parents:
- 17783bf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb2_bus.c
r17783bf r53a9d02 106 106 * 107 107 * 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, 109 109 */ 110 110 static int address_device(device_t *dev) … … 160 160 goto err_address; 161 161 } 162 endpoint_del_ref(default_ep);163 162 164 163 dev->address = address; … … 173 172 } 174 173 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 180 174 return EOK; 181 175 182 176 err_default_control_ep: 183 177 bus_endpoint_remove(default_ep); 184 endpoint_del_ref(default_ep);185 178 err_address: 186 179 release_address(bus, address); … … 235 228 { 236 229 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)); 238 231 assert(ep); 239 232
Note:
See TracChangeset
for help on using the changeset viewer.