Changeset 17873ac7 in mainline for uspace/drv/bus/usb/xhci/bus.c
- Timestamp:
- 2017-10-31T19:06:57Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 479e32d
- Parents:
- a312d8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/bus.c
ra312d8f r17873ac7 198 198 for (size_t i = 0; i < ARRAY_SIZE(xhci_dev->endpoints); ++i) { 199 199 xhci_endpoint_t *ep = xhci_dev->endpoints[i]; 200 if (!ep || !ep->base.active)200 if (!ep) 201 201 continue; 202 202 203 /* FIXME: This is racy. */ 204 if ((err = xhci_transfer_abort(&ep->active_transfer))) { 205 usb_log_warning("Failed to abort active transfer to " 206 " endpoint " XHCI_EP_FMT ": %s", XHCI_EP_ARGS(*ep), 207 str_error(err)); 208 } 203 endpoint_abort(&ep->base); 209 204 } 210 205 … … 454 449 } 455 450 456 static int reset_toggle(bus_t *bus_base, usb_target_t target, bool all)451 static int reset_toggle(bus_t *bus_base, usb_target_t target, toggle_reset_mode_t mode) 457 452 { 458 453 // TODO: Implement me!
Note:
See TracChangeset
for help on using the changeset viewer.