diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 6a9a111..7c60b16 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2148,6 +2148,284 @@ void pci_pm_init(struct pci_dev *dev)
}
}
+static unsigned long pci_ea_set_flags(struct pci_dev *dev, u8 prop)
+{
+ unsigned long flags = IORESOURCE_PCI_FIXED | IORESOURCE_SIZEALIGN;
Why did you add the IORESOURCE_SIZEALIGN flag? EA allows for unaligned resources.
pci_bus_assign_resources() fails causing the devices to be unusable
if resource_alignment() returns zero. The easiest fix for this was
to specify IORESOURCE_SIZEALIGN.
An alternative would be to change the code in setup-bus.c so that
for IORESOURCE_PCI_FIXED resources, it didn't barf.
I would do this alternative, but with a IORESOURCE_PCI_EA flag.