[PATCH v4 05/10] tty: serial: extract tx_ready() from __serial_lpc32xx_tx()
Ilpo Järvinen
ilpo.jarvinen at linux.intel.com
Tue Sep 20 01:11:08 PDT 2022
On Tue, 20 Sep 2022, Jiri Slaby wrote:
> The condition in __serial_lpc32xx_tx()'s loop is barely readable.
> Extract it to a separate function. This will make the cleanup in the
> next patches easier too.
>
> Cc: Vladimir Zapolskiy <vz at mleia.com>
> Cc: <linux-arm-kernel at lists.infradead.org>
> Signed-off-by: Jiri Slaby <jslaby at suse.cz>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
I noticed that wait_for_xmit_ready() uses < 32 for the similar check
which seems fishy...
--
i.
More information about the linux-arm-kernel
mailing list