summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-10-31 14:05:13 -0600
committerBjorn Helgaas <bhelgaas@google.com>2013-10-31 14:05:13 -0600
commitcc17a67c0762a6030b43e98d775a12a99e5ff247 (patch)
tree263f0b7e3ba19e6ba7b313e87cf9a83d75d0704a /drivers/pci
parent4efc52a9c22d4795e6960c1baf41e0f7e440682a (diff)
parentc11592fea04901920236859898f5bc82b6c1a2f1 (diff)
downloadblackbird-op-linux-cc17a67c0762a6030b43e98d775a12a99e5ff247.tar.gz
blackbird-op-linux-cc17a67c0762a6030b43e98d775a12a99e5ff247.zip
Merge branch 'pci/yijing-mps-v1' into next
* pci/yijing-mps-v1: drm/radeon: use pcie_get_readrq() and pcie_set_readrq() to simplify code staging: et131x: Use pci_dev->pcie_mpss and pcie_set_readrq() to simplify code IB/qib: Drop qib_tune_pcie_caps() and qib_tune_pcie_coalesce() return values IB/qib: Use pcie_set_mps() and pcie_get_mps() to simplify code IB/qib: Use pci_is_root_bus() to check whether it is a root bus tile/PCI: use cached pci_dev->pcie_mpss to simplify code PCI: Export pcie_set_mps() and pcie_get_mps()
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index ad7fc72a40a0..c0805f26f339 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -3972,6 +3972,7 @@ int pcie_get_mps(struct pci_dev *dev)
return 128 << ((ctl & PCI_EXP_DEVCTL_PAYLOAD) >> 5);
}
+EXPORT_SYMBOL(pcie_get_mps);
/**
* pcie_set_mps - set PCI Express maximum payload size
@@ -3996,6 +3997,7 @@ int pcie_set_mps(struct pci_dev *dev, int mps)
return pcie_capability_clear_and_set_word(dev, PCI_EXP_DEVCTL,
PCI_EXP_DEVCTL_PAYLOAD, v);
}
+EXPORT_SYMBOL(pcie_set_mps);
/**
* pcie_get_minimum_link - determine minimum link settings of a PCI device
OpenPOWER on IntegriCloud