Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] [MIPS] Fixed PCI resource fixup
@ 2007-01-11  5:55 Yoichi Yuasa
  2007-01-11 14:31 ` Ralf Baechle
  0 siblings, 1 reply; 13+ messages in thread
From: Yoichi Yuasa @ 2007-01-11  5:55 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yoichi_yuasa, linux-mips

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;

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-01-23  1:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-11  5:55 [PATCH] [MIPS] Fixed PCI resource fixup Yoichi Yuasa
2007-01-11 14:31 ` Ralf Baechle
2007-01-11 14:47   ` Yoichi Yuasa
2007-01-11 15:45     ` Atsushi Nemoto
2007-01-12  2:46       ` Yoichi Yuasa
2007-01-12 13:54         ` Atsushi Nemoto
2007-01-13 15:20           ` Yoichi Yuasa
2007-01-12 14:16   ` Peter Horton
2007-01-12 14:40     ` Alan
2007-01-12 14:49       ` Alan
     [not found]         ` <20070114115539.GA5755@linux-mips.org>
2007-01-15 13:37           ` Peter Horton
2007-01-22 20:35             ` Ralf Baechle
2007-01-23  1:35               ` Yoichi Yuasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox