Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146990973
D55102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
594 B
Referenced Files
None
Subscribers
None
D55102.diff
View Options
diff --git a/sys/dev/thunderbolt/tb_pcib.c b/sys/dev/thunderbolt/tb_pcib.c
--- a/sys/dev/thunderbolt/tb_pcib.c
+++ b/sys/dev/thunderbolt/tb_pcib.c
@@ -119,6 +119,10 @@
for (n = tb_pcib_identifiers; n->vendor != 0; n++) {
if ((n->vendor != v) || (n->device != d))
continue;
+ /* Only match actual PCI-PCI bridges to avoid conflict with NHI */
+ if (pci_get_class(dev) != PCIC_BRIDGE ||
+ pci_get_subclass(dev) != PCIS_BRIDGE_PCI)
+ continue;
if (((n->subvendor != 0xffff) && (n->subvendor != sv)) ||
((n->subdevice != 0xffff) && (n->subdevice != sd)))
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 8, 10:12 AM (14 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28443203
Default Alt Text
D55102.diff (594 B)
Attached To
Mode
D55102: thunderbolt: Fix tb_pcib device matching to check PCI class
Attached
Detach File
Event Timeline
Log In to Comment