linux-mips
[Top] [All Lists]

Re: Cobalt fixes

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: Cobalt fixes
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Wed, 12 Dec 2007 07:53:09 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips@linux-mips.org
In-reply-to: <20071211153522.GB15843@linux-mips.org>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20071211121220.GA10870@linux-mips.org> <20071211235001.8621bdb9.yoichi_yuasa@tripeaks.co.jp> <20071211153522.GB15843@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Tue, 11 Dec 2007 15:35:22 +0000
Ralf Baechle <ralf@linux-mips.org> 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@tripeaks.co.jp>

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)

<Prev in Thread] Current Thread [Next in Thread>