Re: [PATCH 1/2] printk: nbcon: move locked_port flag to struct uart_port

From: John Ogness
Date: Wed Jan 24 2024 - 04:47:29 EST


On 2024-01-23, Junxiao Chang <junxiao.chang@xxxxxxxxx> wrote:
> Console pointer in uart_port might be shared among multiple uart
> ports.

I still want to investigate why the pointer is shared. This sounds
sloppy or dangerous.

> Flag port locked by nbcon should be saved in uart_port
> structure instead of in console structure.

If it turns out that the pointer sharing is necessary, this patch will
fix the reported problem.

Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>