diff options
author | Serge Semin <[email protected]> | 2020-09-23 19:19:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-09-30 14:52:42 +0200 |
commit | c8dff3aa824177013d90967687f09f713a55d13f (patch) | |
tree | 09a8c2f7f3a7086343523b1202732fe6d6bef1ff /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7718453e36960dadb8dc46f2b514b309659e1270 (diff) |
serial: 8250: Skip uninitialized TTY port baud rate update
It is erroneous to update the TTY port baud rate if it hasn't been
initialized yet, because in that case the TTY struct isn't set. So there
is no termios structure to get and re-calculate the baud if the current
baud can't be reached. Let's skip the baud rate update then until the port
is fully initialized.
Note the update UART clock method still sets the uartclk member with a new
ref clock value even if the port is turned off. The new UART ref clock
rate will be used later on the port starting up procedure.
Fixes: 868f3ee6e452 ("serial: 8250: Add 8250 port clock update method")
Tested-by: Hans de Goede <[email protected]>
Signed-off-by: Serge Semin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions