[PATCH 2.6.16-rc1] Fix booting Maple boards (was: Re: LINUXPPC64 Maple fails to boot current git)
Tom Rini
trini at kernel.crashing.org
Wed Feb 1 02:11:17 EST 2006
On Mon, Jan 30, 2006 at 06:10:30PM -0500, Michal Ostrowski wrote:
> I saw something similar on a JS-20 w SLOF. The last message you see is
> related to the RTC driver, but the next thing to run after that is
> console_init(), which was where my system was dying.
>
> Dropping the "#ifdef CONFIG_ISA" statements in
> arch/powerpc/kernel/legacy_serial.c appears to fix things, and I've been
> told that a patch to this effect has been posted (though I've yet to see
> it).
The following gets my Maple booting again, and I _think_ is testing what
was intended
---
When looking for legacy serial ports, condition poking of "ISA" areas
on CONFIG_GENERIC_ISA_DMA, rather than CONFIG_ISA as some boards (such
as the Maple) have no ISA slots, but do have ISA serial ports.
Signed-off-by: Tom Rini <trini at kernel.crashing.org>
arch/powerpc/kernel/legacy_serial.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c
index f970ace..3dd7b39 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -134,7 +134,7 @@ static int __init add_legacy_soc_port(st
return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags);
}
-#ifdef CONFIG_ISA
+#ifdef CONFIG_GENERIC_ISA_DMA
static int __init add_legacy_isa_port(struct device_node *np,
struct device_node *isa_brg)
{
@@ -276,7 +276,7 @@ void __init find_legacy_serial_ports(voi
of_node_put(soc);
}
-#ifdef CONFIG_ISA
+#ifdef CONFIG_GENERIC_ISA_DMA
/* First fill our array with ISA ports */
for (np = NULL; (np = of_find_node_by_type(np, "serial"));) {
struct device_node *isa = of_get_parent(np);
--
Tom Rini
http://gate.crashing.org/~trini/
More information about the Linuxppc64-dev
mailing list