Add USB_SPEED_SUPER_PLUS and USB_SPEED_SUPER_PLUS_X2 to prepare support
for USB 3.1 and 3.2 speed display
Also, move definitions of USB_*_MAX into enum instead of macros.
Differential D57194
usb: Add SSP and SSPx2 speed and move USB_*_MAX into enum Authored by aokblast on Sat, May 23, 10:02 AM.
Details
Diff Detail
Event TimelineComment Actions Fantasic! You are solving one of my local TODOs :) Can you make all these USB changes belonging together a stack in Phabricator? % git show 9dbb804f59533d7d539200367394e4013714b02c commit 9dbb804f59533d7d539200367394e4013714b02c Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: Mon Feb 9 01:11:41 2026 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: Sun May 24 15:53:58 2026 +0000 TODO usb: add USB_SPEED_SUPER_PLUS to enum usb_dev_speed While nothing in our native USB stack uses the USB 3.1 "SUPERSPEED+" setting yet, a LinuxKPI based wireless driver does check for it. TODO: The arrays in usbd_get_std_packet_size() likely need to be updated. Sponsored by: The FreeBSD Foundation MFC after: 3 days diff --git sys/dev/usb/usb.h sys/dev/usb/usb.h index 3e972f876c6a..f07eb9adfe40 100644 --- sys/dev/usb/usb.h +++ sys/dev/usb/usb.h @@ -755,8 +755,9 @@ enum usb_dev_speed { USB_SPEED_FULL, USB_SPEED_HIGH, USB_SPEED_SUPER, + USB_SPEED_SUPER_PLUS, }; -#define USB_SPEED_MAX (USB_SPEED_SUPER+1) +#define USB_SPEED_MAX (USB_SPEED_SUPER_PLUS+1) /* * The "USB_REV" macros defines all the supported USB revisions. Comment Actions Hi bz@, Thanks for your reply. I might not know what is the correct way to do so. But I think in the stack tab, all of my patches can be seen in here. |