mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Paul Bolle <pebolle@tiscali.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH][SERIAL] Drop probe_baud() and default to "9600n8"
Date: Tue, 7 Oct 2008 12:15:19 +0100	[thread overview]
Message-ID: <20081007121519.545fd5c7@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <1223377586.5129.43.camel@test.thuisdomein>

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

      reply	other threads:[~2008-10-07 11:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 11:06 Paul Bolle
2008-10-07 11:15 ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081007121519.545fd5c7@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pebolle@tiscali.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®