lkml.org 
[lkml]   [2008]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][SERIAL] Drop probe_baud() and default to "9600n8"
On Tue, 07 Oct 2008 13:06:26 +0200
Paul Bolle <pebolle@tiscali.nl> wrote:

> The early console kernel parameters (i.e. "console=uart[...]" and
> "earlycon=uart[...]" allow to omit the baud/parity/bits option. If that
> option is not provided probe_baud() is used to determine the baud rate
> to be used by that early console.

That depends a lot on the system.

> I noticed that probe_baud() produced useless and/or unpredictable
> results on the few machines I tested the early console parameters (e.g.
> 1355 or 1200 and 115200 alternating). My guess is that this is because

Depends on what the firmware has done. When the firmware has set the port
up as is common in embedded then it is a very useful option to continue
with the rates currently in use.

> probe_baud() and simply use "9600n8" as (safe) defaults for
> baud/parity/bits.

I don't plan to apply this change. If you can figure out a reliable way
to decide a port is uninitialised and default to 9600 in that case then
that would be interesting.

Alan


\
 
 \ /
  Last update: 2008-10-07 13:19    [W:0.045 / U:1.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site