Skip to content

Commit

Permalink
x86, mrst, pci: return 0 for non-present pci bars
Browse files Browse the repository at this point in the history
Moorestown PCI code has special handling of devices with fixed BARs. In
case of BAR sizing writes, we need to update the fake PCI MMCFG space with real
size decode value.

When a BAR is not present, we need to return 0 instead of ~0. ~0 will be
treated as device error per bugzilla 12006.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
LKML-Reference: <1273873281-17489-2-git-send-email-jacob.jun.pan@linux.intel.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Jacob Pan authored and H. Peter Anvin committed May 17, 2010
1 parent 2b107d9 commit e4af426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/pci/mrst.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn,
decode++;
decode = ~(decode - 1);
} else {
decode = ~0;
decode = 0;
}

/*
Expand Down

0 comments on commit e4af426

Please sign in to comment.