Changeset 17873ac7 in mainline for uspace/lib/usbhost/src/usb2_bus.c


Ignore:
Timestamp:
2017-10-31T19:06:57Z (6 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/lib/usbhost/src/usb2_bus.c

    ra312d8f r17873ac7  
    367367}
    368368
    369 static int usb2_bus_reset_toggle(bus_t *bus_base, usb_target_t target, bool all)
     369static int usb2_bus_reset_toggle(bus_t *bus_base, usb_target_t target, toggle_reset_mode_t mode)
    370370{
    371371        usb2_bus_t *bus = bus_to_usb2_bus(bus_base);
     
    374374                return EINVAL;
    375375
     376        if (mode == RESET_NONE)
     377                return EOK;
     378
    376379        int ret = ENOENT;
    377380
     
    379382                assert(ep->device->address == target.address);
    380383
    381                 if (all || ep->endpoint == target.endpoint) {
     384                if (mode == RESET_ALL || ep->endpoint == target.endpoint) {
    382385                        endpoint_toggle_set(ep, 0);
    383386                        ret = EOK;
Note: See TracChangeset for help on using the changeset viewer.