Merge branch 'pci/portdrv'
- Enable Bandwidth Notification only if port supports it (Stuart Hayes) * pci/portdrv: PCI/portdrv: Enable Bandwidth Notification only if port supports it
This commit is contained in:
@ -257,8 +257,13 @@ static int get_port_device_capability(struct pci_dev *dev)
|
||||
services |= PCIE_PORT_SERVICE_DPC;
|
||||
|
||||
if (pci_pcie_type(dev) == PCI_EXP_TYPE_DOWNSTREAM ||
|
||||
pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT)
|
||||
services |= PCIE_PORT_SERVICE_BWNOTIF;
|
||||
pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT) {
|
||||
u32 linkcap;
|
||||
|
||||
pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &linkcap);
|
||||
if (linkcap & PCI_EXP_LNKCAP_LBNC)
|
||||
services |= PCIE_PORT_SERVICE_BWNOTIF;
|
||||
}
|
||||
|
||||
return services;
|
||||
}
|
||||
|
Reference in New Issue
Block a user