linux-mips
[Top] [All Lists]

[PATCH] [MIPS] Fixed PCI resource fixup

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] [MIPS] Fixed PCI resource fixup
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Thu, 11 Jan 2007 14:55:58 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

This patch has fixed IDE resources problem about Cobalt.

pcibios_fixup_device_resources() changes non-movable resources.
It cannot be changed if there is IORESOURCE_PCI_FIXED in the resource flags. 

Yoichi

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       2006-12-18 15:53:10.735222250 +0900
+++ mips/arch/mips/pci/pci.c    2006-12-18 15:56:59.805538250 +0900
@@ -232,7 +232,8 @@ static void __init pcibios_fixup_device_
        int i;
 
        for (i = 0; i < PCI_NUM_RESOURCES; i++) {
-               if (!dev->resource[i].start)
+               if (!dev->resource[i].start ||
+                   dev->resource[i].flags & IORESOURCE_PCI_FIXED)
                        continue;
                if (dev->resource[i].flags & IORESOURCE_IO)
                        offset = hose->io_offset;

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