Page MenuHomeFreeBSD

libusb: implement zlp flag in libusb transfer
Needs ReviewPublic

Authored by aokblast on Wed, Aug 6, 12:58 PM.
Tags
None
Referenced Files
F126277221: D51759.id160030.diff
Sun, Aug 17, 7:09 AM
Unknown Object (File)
Fri, Aug 15, 12:02 PM
Unknown Object (File)
Tue, Aug 12, 6:26 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

The USB protocol defines a Zero-Length Packet (ZLP) to signal the end of
a transfer when the data size is an exact multiple of the Maximum Packet
Size (MPS). Without a ZLP in such cases, the device may not be able to
determine that the transfer has completed.

This flag is added to libusb to allow the user send a ZLP in the end
of libusb_xfer.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 66094
Build 62977: arc lint + arc unit