[PATCH 08/33] serial: 8250: sanitize uart_port::serial_{in,out}() types

Andy Shevchenko andriy.shevchenko at linux.intel.com
Thu Jun 12 01:12:07 AEST 2025


On Wed, Jun 11, 2025 at 12:02:54PM +0200, Jiri Slaby (SUSE) wrote:
> uart_port::{serial_in,serial_out} (and plat_serial8250_port::* likewise)
> historically use:
> * 'unsigned int' for 32-bit register values in reads and writes, and
> * 'int' for offsets.
> 
> Make them sane such that:
> * 'u32' is used for register values, and
> * 'unsigned int' is used for offsets.
> 
> While at it, name hooks' parameters, so it is clear what is what.

At a glance this looks just mechanical change. Have you used coccinelle for
that?

As for the whole idea, I like it,
Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>

> Signed-off-by: Jiri Slaby (SUSE) <jirislaby at kernel.org>

...

> Cc: Madhavan Srinivasan <maddy at linux.ibm.com>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Cc: Nicholas Piggin <npiggin at gmail.com>
> Cc: Christophe Leroy <christophe.leroy at csgroup.eu>
> Cc: "Ilpo Järvinen" <ilpo.jarvinen at linux.intel.com>
> Cc: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> Cc: Paul Cercueil <paul at crapouillou.net>
> Cc: Vladimir Zapolskiy <vz at mleia.com>
> Cc: Kunihiko Hayashi <hayashi.kunihiko at socionext.com>
> Cc: Masami Hiramatsu <mhiramat at kernel.org>

These also can be moved under '---' :-)

> ---
> Cc: linuxppc-dev at lists.ozlabs.org
> Cc: linux-mips at vger.kernel.org
> Cc: linux-arm-kernel at lists.infradead.org
> ---

-- 
With Best Regards,
Andy Shevchenko




More information about the Linuxppc-dev mailing list