Changeset 17873ac7 in mainline for uspace/drv/bus/usb/xhci/bus.c


Ignore:
Timestamp:
2017-10-31T19:06:57Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
479e32d
Parents:
a312d8f
Message:

usbhost endpoint: endpoint→active replaced by tracking active batch

The mechanism is optional, synchronization over endpoint is now not forced. It will be used by xhci to utilize streams.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    ra312d8f r17873ac7  
    198198        for (size_t i = 0; i < ARRAY_SIZE(xhci_dev->endpoints); ++i) {
    199199                xhci_endpoint_t *ep = xhci_dev->endpoints[i];
    200                 if (!ep || !ep->base.active)
     200                if (!ep)
    201201                        continue;
    202202
    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);
    209204        }
    210205
     
    454449}
    455450
    456 static int reset_toggle(bus_t *bus_base, usb_target_t target, bool all)
     451static int reset_toggle(bus_t *bus_base, usb_target_t target, toggle_reset_mode_t mode)
    457452{
    458453        // TODO: Implement me!
Note: See TracChangeset for help on using the changeset viewer.