Re: [PATCH v1 1/1] serial: core: Clearing the circular buffer before NULLifying it

From: Tony Lindgren
Date: Fri Apr 05 2024 - 01:42:55 EST


* Jiri Slaby <jirislaby@xxxxxxxxxx> [240405 05:25]:
> But again, serial8250_start_tx() should not be called after shutdown().

Sounds like we should add some check in addition to UPF_DEAD to
serial_port_runtime_suspend() and serial_port_runtime_resume() to
bail out early on shutdown.

Regards,

Tony