linux/drivers/tty/serial/8250
Pali Rohár 379a33786d serial: 8250: Fix restoring termios speed after suspend
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>
2022-09-25 09:29:44 +02:00
..
8250.h
8250_accent.c
8250_acorn.c
8250_alpha.c
8250_aspeed_vuart.c
8250_bcm2835aux.c
8250_bcm7271.c
8250_boca.c
8250_core.c
8250_dma.c
8250_dw.c
8250_dwlib.c
8250_dwlib.h
8250_early.c
8250_em.c
8250_exar.c
8250_exar_st16c554.c
8250_fintek.c
8250_fourport.c
8250_fsl.c
8250_gsc.c
8250_hp300.c
8250_hub6.c
8250_ingenic.c
8250_ioc3.c
8250_lpc18xx.c
8250_lpss.c
8250_men_mcb.c
8250_mid.c
8250_mtk.c
8250_of.c
8250_omap.c
8250_pci.c
8250_pericom.c
8250_pnp.c
8250_port.c serial: 8250: Fix restoring termios speed after suspend 2022-09-25 09:29:44 +02:00
8250_pxa.c
8250_tegra.c
8250_uniphier.c
Kconfig
Makefile
serial_cs.c