Skip to content

ARM: earlycon: Fix <CR><LF><CR> end-of-line

Alexander Sverdlin linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ARM: earlycon: Fix <CR><LF><CR> end-of-line
Quoted 6 lines · Russell King - ARM Linux
Quoted 5 lines

Since very beginning the early serial console on ARM produces <CR><LF><CR> line terminator. There are couple of problems connected:
1. C function early_write() adds <CR> to each <LF> even though underlying Assembler printch() does this already
2. printch() adds <CR> *after* <LF>, not before, as it is usually being done

You omit to say why you want this change...

Well, only because it produces normal serial log after the change, as all other ARCHs do. Depending on the viewer one either doesn't have extra "^M" at the beginning of each line or the lines are not interlaced (with extra empty lines) any more.

Signature · 2 lines
Best regards,
Alexander Sverdlin.