diff options
| author | Linmao Li <lilinmao@kylinos.cn> | 2026-09-01 12:15:19 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-23 14:44:45 +0200 |
| commit | dda3502cf1838f806b90405a127ec2e66c885c9d (patch) | |
| tree | 95d8fa040531047f9e47ff5861d30fb485dc929f /tools/lib/python/kdoc/python_version.py | |
| parent | 39eaa90b6bd1dbe147c90c345796bc042080d80e (diff) | |
serial: 8250_mxpcie: take the line settings from the new termios
mxpcie8250_set_termios() reads the line settings out of
port->state->port.tty, which is only set once the port has been opened.
uart_set_options() builds a termios of its own and calls ->set_termios()
with no tty behind it, so using such a board as the console
(console=ttyS<n>) dereferences a NULL tty during console setup, as does
attaching kgdboc to it and resuming a suspended console from
uart_resume_port().
Read the settings from the termios the serial core passes in instead.
It holds the same values on the normal path - uart_change_line_settings()
passes &tty->termios - and it is what serial8250_do_set_termios() right
above already uses.
Fixes: 55edf8511f47 ("serial: 8250_mxpcie: enable automatic RTS/CTS flow control")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Tested-by: Crescent Hsieh <crescentcy.hsieh@moxa.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Crescent Hsieh <crescentcy.hsieh@moxa.com>
Link: https://patch.msgid.link/20260901041519.114737-4-lilinmao@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
