Page MenuHomeFreeBSD

libusb: add SUPER_PLUS in speed enum.
ClosedPublic

Authored by aokblast on May 15 2025, 10:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 23, 6:21 PM
Unknown Object (File)
Mon, Jun 23, 8:03 AM
Unknown Object (File)
Sun, Jun 22, 11:47 PM
Unknown Object (File)
Fri, Jun 20, 5:51 AM
Unknown Object (File)
Fri, Jun 20, 3:44 AM
Unknown Object (File)
Thu, Jun 19, 10:18 PM
Unknown Object (File)
Thu, Jun 19, 2:33 PM
Unknown Object (File)
Thu, Jun 19, 11:53 AM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 15 2025, 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.May 15 2025, 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.May 15 2025, 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.