* uncompress and ll debug uart consolidation
@ 2011-05-27 18:10 Rob Herring
2011-05-27 18:58 ` Nicolas Pitre
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2011-05-27 18:10 UTC (permalink / raw)
To: linux-arm-kernel
I started looking at the 10 duplicate implementations of PL01x uart code
in various mach/uncompress.h. My first thought was just consolidate
those into 1 uncompress-pl01x.h header similar to debug-pl01x.S.
However, the LL debug macros are basically doing the same thing and are
already used by compressed/head.S, so why not make the uncompress code
use them? The debug macros are already included when DEBUG is defined
for compressed/head.S. It's quite trivial to use putc from head.S in
misc.c instead of the C version. To take it a step further, why not just
use kernel/debug.S for the decompresser and replace much of the code in
compressed/head.S. This would get rid of 2 implementations of DCC,
SA1100 and S3C2410 code.
Am I missing something?
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
* uncompress and ll debug uart consolidation
2011-05-27 18:10 uncompress and ll debug uart consolidation Rob Herring
@ 2011-05-27 18:58 ` Nicolas Pitre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pitre @ 2011-05-27 18:58 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 27 May 2011, Rob Herring wrote:
> I started looking at the 10 duplicate implementations of PL01x uart code in
> various mach/uncompress.h. My first thought was just consolidate those into 1
> uncompress-pl01x.h header similar to debug-pl01x.S.
>
> However, the LL debug macros are basically doing the same thing and are
> already used by compressed/head.S, so why not make the uncompress code use
> them? The debug macros are already included when DEBUG is defined for
> compressed/head.S. It's quite trivial to use putc from head.S in misc.c
> instead of the C version. To take it a step further, why not just use
> kernel/debug.S for the decompresser and replace much of the code in
> compressed/head.S. This would get rid of 2 implementations of DCC, SA1100 and
> S3C2410 code.
>
> Am I missing something?
I've been looking forward to do exactly that. Didn't get around to it
yet, so if you feel like doing that work then please go ahead and I'll
be glad to review it.
Nicolas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-27 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-27 18:10 uncompress and ll debug uart consolidation Rob Herring
2011-05-27 18:58 ` Nicolas Pitre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox