On Tue, 11 Dec 2007 15:35:22 +0000 Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote: > On Tue, Dec 11, 2007 at 11:50:01PM +0900, Yoichi Yuasa wrote: > > > > for non-subscribers. Linus has reverted the offending patch > > > fd6e732186ab522c812ab19c2c5e5befb8ec8115 in question so now the PCI and > > > I/O port code needs to be fixed up to be able to handle such a setup. > > > > It can be fixed my fix PCI resource patch. > > > > http://www.linux-mips.org/archives/linux-mips/2007-01/msg00049.html > > Modulo a codying style issue that one is the same as the pci.c segment of > the patch I've just posted. This is a fix proposed before fd6e732186ab522c812ab19c2c5e5befb8ec8115. This patch is still effective. Fixed line offset and coding style. Signed-off-by: Yoichi Yuasa <yoichi_yuasa@xxxxxxxxxxxxxx> diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/pci/pci.c mips/arch/mips/pci/pci.c --- mips-orig/arch/mips/pci/pci.c 2007-12-12 06:48:44.282421000 +0900 +++ mips/arch/mips/pci/pci.c 2007-12-12 06:54:51.041342000 +0900 @@ -242,6 +242,8 @@ static void pcibios_fixup_device_resourc for (i = 0; i < PCI_NUM_RESOURCES; i++) { if (!dev->resource[i].start) continue; + if (dev->resource[i].flags & IORESOURCE_PCI_FIXED) + continue; if (dev->resource[i].flags & IORESOURCE_IO) offset = hose->io_offset; else if (dev->resource[i].flags & IORESOURCE_MEM)