Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294734
b: refs/heads/master
c: 823806f
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Jesse Barnes committed Feb 23, 2012
1 parent 521d3d0 commit 85a4958
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: 8ed3087280ee8c527b7090887e333761a9c75474
refs/heads/master: 823806ff6bd63f92644a5330cf0c3b68fac25ffd
12 changes: 11 additions & 1 deletion trunk/arch/x86/pci/mrst.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
#define PCI_FIXED_BAR_4_SIZE 0x14
#define PCI_FIXED_BAR_5_SIZE 0x1c

static int pci_soc_mode = 0;

/**
* fixed_bar_cap - return the offset of the fixed BAR cap if found
* @bus: PCI bus
Expand Down Expand Up @@ -233,10 +235,11 @@ struct pci_ops pci_mrst_ops = {
*/
int __init pci_mrst_init(void)
{
printk(KERN_INFO "Moorestown platform detected, using MRST PCI ops\n");
printk(KERN_INFO "Intel MID platform detected, using MID PCI ops\n");
pci_mmcfg_late_init();
pcibios_enable_irq = mrst_pci_irq_enable;
pci_root_ops = pci_mrst_ops;
pci_soc_mode = 1;
/* Continue with standard init */
return 1;
}
Expand All @@ -246,6 +249,10 @@ int __init pci_mrst_init(void)
*/
static void __devinit pci_d3delay_fixup(struct pci_dev *dev)
{
/* PCI fixups are effectively decided compile time. If we have a dual
SoC/non-SoC kernel we don't want to mangle d3 on non SoC devices */
if (!pci_soc_mode)
return;
/* true pci devices in lincroft should allow type 1 access, the rest
* are langwell fake pci devices.
*/
Expand Down Expand Up @@ -274,6 +281,9 @@ static void __devinit pci_fixed_bar_fixup(struct pci_dev *dev)
u32 size;
int i;

if (!pci_soc_mode)
return;

/* Must have extended configuration space */
if (dev->cfg_size < PCIE_CAP_OFFSET + 4)
return;
Expand Down

0 comments on commit 85a4958

Please sign in to comment.