Changeset 24c41ba1 in mainline


Ignore:
Timestamp:
2018-02-01T16:10:12Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8393c73b
Parents:
1a2227d
git-author:
Petr Manek <petr.manek@…> (2018-02-01 16:08:43)
git-committer:
Petr Manek <petr.manek@…> (2018-02-01 16:10:12)
Message:

usbhost: check transfer size only for out endpoints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/endpoint.c

    r1a2227d r24c41ba1  
    244244
    245245        /** Limit transfers with reserved bandwidth to the amount reserved */
    246         if ((ep->transfer_type == USB_TRANSFER_INTERRUPT
    247             || ep->transfer_type == USB_TRANSFER_ISOCHRONOUS)
    248             && size > ep->max_transfer_size)
     246        if (ep->direction == USB_DIRECTION_OUT && size > ep->max_transfer_size)
    249247                return ENOSPC;
    250248
Note: See TracChangeset for help on using the changeset viewer.