Page MenuHomeFreeBSD

libusb: add SUPER_PLUS in speed enum.
ClosedPublic

Authored by aokblast on Thu, May 15, 10:34 AM.
Tags
None
Referenced Files
F117992039: D50359.diff
Sun, May 25, 2:36 AM
Unknown Object (File)
Sat, May 24, 1:43 PM
Unknown Object (File)
Sat, May 24, 12:25 PM
Unknown Object (File)
Sat, May 24, 10:48 AM
Unknown Object (File)
Sat, May 24, 10:22 AM
Unknown Object (File)
Sat, May 24, 6:25 AM
Unknown Object (File)
Sat, May 24, 5:35 AM
Unknown Object (File)
Mon, May 19, 12:16 PM
Subscribers

Details

Summary

Some application(like usbmuxd) start to use LIBUSB_SPEED_SUPER_PLUS now.
Though we don't have the corresponding infra in kernel right now, it is
harmless to have this enum to prevent the compile error

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Thu, May 15, 12:04 PM
lib/libusb/libusb20.3
861

Don't forget also updating .Dd field. 😆

Also I'm not sure if we need/want mention that we don't have the corresponding infra in kernel in the caveat section.

This revision now requires review to proceed.Thu, May 15, 5:05 PM
lib/libusb/libusb20.3
861

I don't add anything to kernel. In kernel, it should use USB_SPEED_SUPER_PLUS which is the different enum from libusb one (with LIBUSB_SPEED in prefix). So I am not sure if we should add some warning on something nonexist.

This revision was not accepted when it landed; it landed in state Needs Review.Thu, May 15, 6:31 PM
Closed by commit rGf938c0a90313: libusb: add SUPER_PLUS in speed enum. (authored by aokblast, committed by bapt). · Explain Why
This revision was automatically updated to reflect the committed changes.
lib/libusb/libusb20.3
861

it's exactly because we don't have it supported in kernel, while having that in the interface and document so we may need to warn people that it doesn't take actual effect.