[PATCH tty v1 00/74] serial: wrappers for uart port lock

John Ogness john.ogness at linutronix.de
Sat Sep 16 12:42:14 PDT 2023


On 2023-09-15, Ilpo Järvinen <ilpo.jarvinen at linux.intel.com> wrote:
> Would this also be useful to enable printing to console while under
> port's lock (by postponing the output until the lock is released)?
>
> E.g., 8250_dw.c has had this commented out since the dawn on time:
>         /*
>          * FIXME: this deadlocks if port->lock is already held
>          * dev_err(p->dev, "Couldn't set LCR to %d\n", value);
>          */

Yes, this will fix such issues. However, only for consoles that are
converted to the new NBCON console type.

Good news, the 8250 driver will be the flagship driver that is converted
as part of the rework. So this particular issue will be solved then. I
will try to remember this so that I can remove the FIXME in the series.

Thanks for mentioning it.

John



More information about the Linux-mediatek mailing list