Changeset 0eadfd1e in mainline for uspace/drv/bus/usb/xhci/bus.c
- Timestamp:
- 2018-01-09T14:14:32Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dfa1fc8
- Parents:
- 17c5e62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/bus.c
r17c5e62 r0eadfd1e 93 93 xhci_endpoint_t *ep0 = xhci_endpoint_get(ep0_base); 94 94 95 if ((err = xhci_endpoint_alloc_transfer_ds(ep0)))96 goto err_added;97 98 95 /* Address device */ 99 96 if ((err = hc_address_device(bus->hc, dev, ep0))) 100 goto err_prepared; 101 102 return EOK; 103 104 err_prepared: 105 xhci_endpoint_free_transfer_ds(ep0); 97 goto err_added; 98 99 return EOK; 100 106 101 err_added: 107 102 /* Bus reference */ … … 354 349 continue; 355 350 356 xhci_endpoint_free_transfer_ds(xhci_endpoint_get(endpoints[i]));357 351 /* Bus reference */ 358 352 endpoint_del_ref(endpoints[i]); … … 411 405 xhci_device_t *dev = xhci_device_get(ep_base->device); 412 406 413 if ((err = xhci_endpoint_alloc_transfer_ds(ep)))414 return err;415 416 407 usb_log_info("Endpoint " XHCI_EP_FMT " registered to XHCI bus.", XHCI_EP_ARGS(*ep)); 417 408 … … 420 411 421 412 if ((err = hc_add_endpoint(bus->hc, dev->slot_id, xhci_endpoint_index(ep), &ep_ctx))) 422 goto err_prepared; 423 424 return EOK; 425 426 err_prepared: 427 xhci_endpoint_free_transfer_ds(ep); 428 return err; 413 return err; 414 415 return EOK; 429 416 } 430 417 … … 454 441 } 455 442 456 /* Tear down TRB ring / PSA. */457 xhci_endpoint_free_transfer_ds(ep);458 459 443 return EOK; 460 444 }
Note:
See TracChangeset
for help on using the changeset viewer.