Page MenuHomeFreeBSD

D55102.diff
No OneTemporary

D55102.diff

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

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)

Event Timeline