Message ID | 20131118191752.26774.25303.stgit@bhelgaas-glaptop.roam.corp.google.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/pci/access.c b/drivers/pci/access.c index e26c3bd9aca4..bcd92b629d3c 100644 --- a/drivers/pci/access.c +++ b/drivers/pci/access.c @@ -499,8 +499,8 @@ static inline bool pcie_cap_has_sltctl(const struct pci_dev *dev) int type = pci_pcie_type(dev); return pcie_cap_version(dev) > 1 || - type == PCI_EXP_TYPE_ROOT_PORT || - (type == PCI_EXP_TYPE_DOWNSTREAM && + ((type == PCI_EXP_TYPE_ROOT_PORT || + type == PCI_EXP_TYPE_DOWNSTREAM) && pcie_caps_reg(dev) & PCI_EXP_FLAGS_SLOT); }