projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
775c739
)
PCI: Fix PCI Express Capability accessors for PCI_EXP_FLAGS
author
Alex Williamson
<alex.williamson@redhat.com>
Thu, 14 Feb 2013 18:35:42 +0000
(11:35 -0700)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 15 Feb 2013 18:46:24 +0000
(11:46 -0700)
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+
drivers/pci/access.c
patch
|
blob
|
history
diff --git
a/drivers/pci/access.c
b/drivers/pci/access.c
index 5278ac692cbf17c07b926fc41fb9ea055fa932a0..1cc23661f79bbefa80e636fd4cbb765148306b80 100644
(file)
--- 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: