* [PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250
@ 2005-12-21 2:45 Kumar Gala
2005-12-21 5:13 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Kumar Gala @ 2005-12-21 2:45 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, linuxppc64-dev
In setup_arch and setup_system call find_legacy_serial_ports() if we
build in support for 8250 serial ports instead of basing it on PPC_MULTIPLATFORM.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
commit 399e10aa1c6a3ca64e8e8e8cea7289e9908cc62c
tree 3e5320b8a97a37c4d010186aabf8a95e5be264b4
parent 7b69a37a4e811e72e82896ab38e6ae04542455f5
author Kumar Gala <galak@kernel.crashing.org> Tue, 20 Dec 2005 20:48:36 -0600
committer Kumar Gala <galak@kernel.crashing.org> Tue, 20 Dec 2005 20:48:36 -0600
arch/powerpc/kernel/setup_32.c | 2 +-
arch/powerpc/kernel/setup_64.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index 79d434f..e5d285a 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -299,7 +299,7 @@ void __init setup_arch(char **cmdline_p)
if (ppc_md.init_early)
ppc_md.init_early();
-#ifdef CONFIG_PPC_MULTIPLATFORM
+#ifdef CONFIG_SERIAL_8250
find_legacy_serial_ports();
#endif
finish_device_tree();
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 419e0b9..98e9f05 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -472,7 +472,7 @@ void __init setup_system(void)
* hash table management for us, thus ioremap works. We do that early
* so that further code can be debugged
*/
-#ifdef CONFIG_PPC_MULTIPLATFORM
+#ifdef CONFIG_SERIAL_8250
find_legacy_serial_ports();
#endif
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250
2005-12-21 2:45 [PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250 Kumar Gala
@ 2005-12-21 5:13 ` Stephen Rothwell
2005-12-21 15:31 ` Kumar Gala
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2005-12-21 5:13 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, linuxppc64-dev
[-- Attachment #1: Type: text/plain, Size: 999 bytes --]
On Tue, 20 Dec 2005 20:45:27 -0600 (CST) Kumar Gala <galak@gate.crashing.org> wrote:
>
> In setup_arch and setup_system call find_legacy_serial_ports() if we
> build in support for 8250 serial ports instead of basing it on PPC_MULTIPLATFORM.
>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
>
> ---
> commit 399e10aa1c6a3ca64e8e8e8cea7289e9908cc62c
> tree 3e5320b8a97a37c4d010186aabf8a95e5be264b4
> parent 7b69a37a4e811e72e82896ab38e6ae04542455f5
> author Kumar Gala <galak@kernel.crashing.org> Tue, 20 Dec 2005 20:48:36 -0600
> committer Kumar Gala <galak@kernel.crashing.org> Tue, 20 Dec 2005 20:48:36 -0600
>
> arch/powerpc/kernel/setup_32.c | 2 +-
> arch/powerpc/kernel/setup_64.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
You should probably change the Makefile as well to build legacy_serial.c
in the CONFIG_SERIAL_8250 case.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250
2005-12-21 5:13 ` Stephen Rothwell
@ 2005-12-21 15:31 ` Kumar Gala
0 siblings, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2005-12-21 15:31 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linuxppc64-dev, Kumar Gala, linuxppc-dev
On Dec 20, 2005, at 11:13 PM, Stephen Rothwell wrote:
> On Tue, 20 Dec 2005 20:45:27 -0600 (CST) Kumar Gala
> <galak@gate.crashing.org> wrote:
>>
>> In setup_arch and setup_system call find_legacy_serial_ports() if we
>> build in support for 8250 serial ports instead of basing it on
>> PPC_MULTIPLATFORM.
>>
>> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
>>
>> ---
>> commit 399e10aa1c6a3ca64e8e8e8cea7289e9908cc62c
>> tree 3e5320b8a97a37c4d010186aabf8a95e5be264b4
>> parent 7b69a37a4e811e72e82896ab38e6ae04542455f5
>> author Kumar Gala <galak@kernel.crashing.org> Tue, 20 Dec 2005
>> 20:48:36 -0600
>> committer Kumar Gala <galak@kernel.crashing.org> Tue, 20 Dec 2005
>> 20:48:36 -0600
>>
>> arch/powerpc/kernel/setup_32.c | 2 +-
>> arch/powerpc/kernel/setup_64.c | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> You should probably change the Makefile as well to build
> legacy_serial.c
> in the CONFIG_SERIAL_8250 case.
Good call, was meaning to update the Makefile as well. I'll send an
updated patch with the Makefile change.
- kumar
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-21 15:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 2:45 [PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250 Kumar Gala
2005-12-21 5:13 ` Stephen Rothwell
2005-12-21 15:31 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox