Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376079
b: refs/heads/master
c: f3f0117
h: refs/heads/master
i:
  376077: fe47375
  376075: 18e8ce0
  376071: eeac0d7
  376063: d9a6e3b
v: v3
  • Loading branch information
Bjorn Helgaas committed May 20, 2013
1 parent 2fdec76 commit 9319a1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 3f327e39b4b8f760c331bb2836735be6d83fbf53
refs/heads/master: f3f011750a18abc389ef1b0d504fbeeacf641919
10 changes: 4 additions & 6 deletions trunk/arch/x86/pci/mrst.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn,
*/
static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg)
{
if (bus == 0 && (devfn == PCI_DEVFN(2, 0)
|| devfn == PCI_DEVFN(0, 0)
|| devfn == PCI_DEVFN(3, 0)))
return 1;

/* This is a workaround for A0 LNC bug where PCI status register does
* not have new CAP bit set. can not be written by SW either.
*
Expand All @@ -155,7 +150,10 @@ static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg)
*/
if (reg >= 0x100 || reg == PCI_STATUS || reg == PCI_HEADER_TYPE)
return 0;

if (bus == 0 && (devfn == PCI_DEVFN(2, 0)
|| devfn == PCI_DEVFN(0, 0)
|| devfn == PCI_DEVFN(3, 0)))
return 1;
return 0; /* langwell on others */
}

Expand Down

0 comments on commit 9319a1f

Please sign in to comment.