Changeset af16ebe in mainline for uspace/lib/usbhost/src/endpoint.c
- Timestamp:
- 2018-02-05T00:54:52Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 239eea41
- Parents:
- c21e6a5
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-02-05 00:49:07)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-02-05 00:54:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/endpoint.c
rc21e6a5 raf16ebe 244 244 } 245 245 246 /** Limit transfers with reserved bandwidth to the amount reserved */ 247 if (ep->direction == USB_DIRECTION_OUT && size > ep->max_transfer_size) 248 return ENOSPC; 246 /* 247 * Limit transfers with reserved bandwidth to the amount reserved. 248 * OUT transfers are rejected, IN can be just trimmed in advance. 249 */ 250 if ((ep->transfer_type == USB_TRANSFER_INTERRUPT || ep->transfer_type == USB_TRANSFER_ISOCHRONOUS) && size > ep->max_transfer_size) { 251 if (direction == USB_DIRECTION_OUT) 252 return ENOSPC; 253 else 254 size = ep->max_transfer_size; 255 256 } 249 257 250 258 /* Offline devices don't schedule transfers other than on EP0. */
Note:
See TracChangeset
for help on using the changeset viewer.