Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201050
b: refs/heads/master
c: f82c3d7
h: refs/heads/master
v: v3
  • Loading branch information
Jacob Pan authored and H. Peter Anvin committed Jul 16, 2010
1 parent 3453ca9 commit 19151e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd19dce7ac07973f700b0f13fb7f94b951414a4c
refs/heads/master: f82c3d71d6fd2e6a3e3416f09099e29087e39abf
7 changes: 4 additions & 3 deletions trunk/arch/x86/pci/mrst.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn)
devfn, pos, 4, &pcie_cap))
return 0;

if (pcie_cap == 0xffffffff)
return 0;
if (PCI_EXT_CAP_ID(pcie_cap) == 0x0000 ||
PCI_EXT_CAP_ID(pcie_cap) == 0xffff)
break;

if (PCI_EXT_CAP_ID(pcie_cap) == PCI_EXT_CAP_ID_VNDR) {
raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number,
Expand All @@ -76,7 +77,7 @@ static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn)
return pos;
}

pos = pcie_cap >> 20;
pos = PCI_EXT_CAP_NEXT(pcie_cap);
}

return 0;
Expand Down

0 comments on commit 19151e4

Please sign in to comment.