Check a PCI device's class, subclass, and progif to figure out if it is
a USB4 NHI. nhi_identifiers is completely removed as only these generic
USB4 NHIs are supported anyway.
PR: 290827
Sponsored by: The FreeBSD Foundation
Differential D52861
thunderbolt: Support generic USB4 NHIs Authored by obiwac on Oct 2 2025, 3:49 PM. Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions Does this mean all TB3 support will be removed? Is there more to cleanup in that case? Comment Actions
as I understood it, USB4 pretty much just standardized existing TB3 controllers, so I guess it would be possible to have a TB3 controller for which a USB4 driver/HCM would work. Not that I know of any such controllers. This is the existing check to set HCM usage, which would maybe imply there are some devices which normally use an ICM but for which a HCM would work: if (NHI_IS_USB4(sc) || (sc->force_hcm == NHI_FORCE_HCM_ON)) sc->caps |= NHI_CAP_HCM; maybe @scottl could elucidate this
yeah, we should anyway also remove all this force_hcm stuff seeing as that's all we're going to support. |