summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-02-14 11:35:42 -0700
committerBjorn Helgaas <bhelgaas@google.com>2013-02-15 11:46:24 -0700
commit969daa349f4821a02936af7202b51a9affc7b6da (patch)
treef1c69be9b56afcb75efd51a128a4ebff35d91a5c /drivers/pci
parent775c739e0b08fbffb791595a4708460fc978b5b6 (diff)
downloadop-kernel-dev-969daa349f4821a02936af7202b51a9affc7b6da.zip
op-kernel-dev-969daa349f4821a02936af7202b51a9affc7b6da.tar.gz
PCI: Fix PCI Express Capability accessors for PCI_EXP_FLAGS
PCI_EXP_FLAGS_TYPE is a mask, not an offset. Fix it. Previously, pcie_capability_read_word(..., PCI_EXP_FLAGS, ...) would fail. [bhelgaas: tweak changelog] Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: stable@vger.kernel.org # v3.7+
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/access.c b/drivers/pci/access.c
index 5278ac6..1cc2366 100644
--- a/drivers/pci/access.c
+++ b/drivers/pci/access.c
@@ -515,7 +515,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos)
return false;
switch (pos) {
- case PCI_EXP_FLAGS_TYPE:
+ case PCI_EXP_FLAGS:
return true;
case PCI_EXP_DEVCAP:
case PCI_EXP_DEVCTL:
OpenPOWER on IntegriCloud