PCI: Apply _HPX Link Control settings to all devices with a link
[deliverable/linux.git] / drivers / pci / probe.c
index 5ed99309c75800938b666c5c523d7ea3ca07d51f..6244b1834dfe444bd6b3fcc2ac315024e13268ac 100644 (file)
@@ -1323,7 +1323,7 @@ static void program_hpp_type2(struct pci_dev *dev, struct hpp_type2 *hpp)
                        ~hpp->pci_exp_devctl_and, hpp->pci_exp_devctl_or);
 
        /* Initialize Link Control Register */
-       if (dev->subordinate)
+       if (pcie_cap_has_lnkctl(dev))
                pcie_capability_clear_and_set_word(dev, PCI_EXP_LNKCTL,
                        ~hpp->pci_exp_lnkctl_and, hpp->pci_exp_lnkctl_or);
 
This page took 0.044929 seconds and 5 git commands to generate.