Re: [PATCH v2 08/15] serial: earlycon: use uart_iotype_*() to simplify code
From: Hugo Villeneuve
Date: Mon May 04 2026 - 11:43:00 EST
On Thu, 30 Apr 2026 17:03:35 +0200
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
> On Tue, Apr 28, 2026 at 01:53:54PM -0400, Hugo Villeneuve wrote:
>
> > Make use of new functions uart_iotype_mmio() and uart_iotype_legacy_io()
> > to simplify and improve code readability.
>
> ...
>
> > + char address[64] = "";
>
> TBH, I prefer two pr_info() calls as that approach
> - doesn't require temporary buffer
> - doesn't use heavy s*printf() on top of the existing printing
> - doesn't limit the flexibility of each of the strings (64 might
> become not enough in some cases, however unlikely to happen)
Note that this approach is already used in uart_report_port().
Also this patch may be reworked if patch "serial: uniformize serial
port I/O infos display" is deemed ok...
--
Hugo Villeneuve