Files
linux/drivers/tty/serial
Pali Rohár c74b3d46d8 serial: 8250: Fix restoring termios speed after suspend
[ Upstream commit 379a33786d ]

Since commit edc6afc549 ("tty: switch to ktermios and new framework")
termios speed is no longer stored only in c_cflag member but also in new
additional c_ispeed and c_ospeed members. If BOTHER flag is set in c_cflag
then termios speed is stored only in these new members.

Since commit 027b57170b ("serial: core: Fix initializing and restoring
termios speed") termios speed is available also in struct console.

So properly restore also c_ispeed and c_ospeed members after suspend to fix
restoring termios speed which is not represented by Bnnn constant.

Fixes: 4516d50aab ("serial: 8250: Use canary to restart console after suspend")
Signed-off-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20220924104324.4035-1-pali@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:38:50 +02:00
..
2021-07-27 12:17:21 +02:00
2022-06-27 14:37:09 +02:00
2022-07-16 08:16:01 +02:00
2022-06-27 14:34:45 +02:00
2022-06-27 14:41:31 +02:00
2022-06-27 14:41:31 +02:00
2022-05-19 18:32:40 +02:00
2022-05-19 18:32:40 +02:00
2022-06-27 14:41:31 +02:00
2022-04-22 16:21:53 +02:00