All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: "Alex G." <mr.nuke.me@gmail.com>,
	"Marek Behún" <marek.behun@nic.cz>,
	"Simon Glass" <sjg@chromium.org>,
	u-boot@lists.denx.de
Subject: Re: [RFC PATCH] RFC: Replace CONFIG_SYS_BAUDRATE_TABLE by board and UART driver rounding functions
Date: Sat, 25 Sep 2021 09:51:08 -0400	[thread overview]
Message-ID: <20210925135108.GX31748@bill-the-cat> (raw)
In-Reply-To: <20210925121958.26001-1-pali@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]

On Sat, Sep 25, 2021 at 02:19:58PM +0200, Pali Rohár wrote:

> Add new functions which returns the nearest baudrate and use them instead
> of hardcoded and incomplete CONFIG_SYS_BAUDRATE_TABLE compile time option.
> 
> Add implementation of rounding function for serial_mvebu_a3700 driver and
> also for A3720 Espressobin board which has integrated pl2303 USB<->UART
> converter, which basically limits baudrates which can user set.
> 
> Completely remove CONFIG_SYS_BAUDRATE_TABLE defines from all A3720 boards
> as now with rounding functions it is not used anymore.
> 
> NOTE: This is just an example how to kill CONFIG_SYS_BAUDRATE_TABLE compile
> time definitions. I tested it that it works on A3720 Turris Mox board. I
> have not tested A3720 Espressobin board yet.
> 
> More discussion on this approach is required, so take this just as RFC
> change.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>

Thanks for doing this.  My first question is, is this really per-board?
Or per SoC / UART chipset.  I would hope for example that for plain old
ns16550s this would be a generic function, perhaps with an optional
board call-out for board design limitations.  This does feel like a
reasonable amount of code for platforms like this that were supporting
what was the maximal rate table before.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-09-25 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-25 12:19 [RFC PATCH] RFC: Replace CONFIG_SYS_BAUDRATE_TABLE by board and UART driver rounding functions Pali Rohár
2021-09-25 13:51 ` Tom Rini [this message]
2021-09-25 14:23   ` Pali Rohár
2022-04-06 13:30     ` Pali Rohár
2022-04-06 13:32       ` Tom Rini

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=20210925135108.GX31748@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=marek.behun@nic.cz \
    --cc=mr.nuke.me@gmail.com \
    --cc=pali@kernel.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.