Re: [PATCH 4/4] tty: serial: do unlock on a common path in altera_jtaguart_console_putc()

From: Tobias Klauser
Date: Tue Sep 27 2022 - 10:59:39 EST


On 2022-09-27 at 13:18:19 +0200, Jiri Slaby <jslaby@xxxxxxx> wrote:
> port->lock is unlocked in each branch in altera_jtaguart_console_putc(),
> so do it before the "if". "status" needs not be under the lock, as the
> register was already read.
>
> Cc: Tobias Klauser <tklauser@xxxxxxxxxx>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>

Acked-by: Tobias Klauser <tklauser@xxxxxxxxxx>

Thanks