pci_is_thunderbolt_attached
if (!pci_is_thunderbolt_attached(rdev->pdev))
!pci_is_thunderbolt_attached(pdev))