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 serial: take termios_rwsem for ->rs485_config() & pass termios as param 2022-06-27 14:44:20 +02:00
8250_accent.c
8250_acorn.c
8250_alpha.c serial: 8250: Move Alpha-specific quirk out of the core 2021-12-30 13:23:44 +01:00
8250_aspeed_vuart.c serial: 8250_aspeed_vuart: Fix potential NULL dereference in aspeed_vuart_probe 2022-04-15 11:31:29 +02:00
8250_bcm2835aux.c serial: 8250_bcm2835aux: Add missing clk_disable_unprepare() 2022-07-28 10:33:44 +02:00
8250_bcm7271.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_boca.c
8250_core.c serial: 8250: Toggle IER bits on only after irq has been set up 2022-09-22 16:30:14 +02:00
8250_dma.c serial: 8250_dma: Convert to use uart_xmit_advance() 2022-09-25 09:27:41 +02:00
8250_dw.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_dwlib.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_dwlib.h serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_early.c serial: Consolidate BOTH_EMPTY use 2022-06-27 14:41:31 +02:00
8250_em.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
8250_exar.c serial: Embed rs485_supported to uart_port 2022-07-08 15:14:09 +02:00
8250_exar_st16c554.c
8250_fintek.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_fourport.c
8250_fsl.c serial: 8250_fsl: Don't report FE, PE and OE twice 2022-07-08 15:13:22 +02:00
8250_gsc.c serial: parisc: GSC: fix build when IOSAPIC is not set 2022-02-14 19:34:42 +01:00
8250_hp300.c
8250_hub6.c
8250_ingenic.c serial: 8250: make saved LSR larger 2022-06-27 14:44:20 +02:00
8250_ioc3.c Fix up remaining devm_ioremap_nocache() in SGI IOC3 8250 UART driver 2020-02-08 14:19:39 -08:00
8250_lpc18xx.c serial: 8250: lpc18xx: Remove redundant sanity check for RS485 flags 2022-07-14 16:34:24 +02:00
8250_lpss.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_men_mcb.c serial: 8250_men_mcb: Remove duplicate UAPI:serial_core inclusion 2022-09-01 15:59:36 +02:00
8250_mid.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_mtk.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_of.c serial: Embed rs485_supported to uart_port 2022-07-08 15:14:09 +02:00
8250_omap.c serial: Deassert Transmit Enable on probe in driver-specific way 2022-09-25 09:28:57 +02:00
8250_pci.c serial: Deassert Transmit Enable on probe in driver-specific way 2022-09-25 09:28:57 +02:00
8250_pericom.c serial: 8250_pericom: Use UART_LCR_DLAB 2022-06-27 14:33:15 +02:00
8250_pnp.c serial: 8250: remove duplicated BRI0A49 and BDP3336 entries 2021-09-22 16:59:13 +02:00
8250_port.c serial: 8250: Fix restoring termios speed after suspend 2022-09-25 09:29:44 +02:00
8250_pxa.c serial: 8250: pxa: Remove unneeded <linux/pm_runtime.h> 2022-05-05 22:34:27 +02:00
8250_tegra.c serial: 8250_tegra: mark acpi_device_id as unused with !ACPI 2022-03-18 13:18:25 +01:00
8250_uniphier.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Kconfig serial: 8250: SERIAL_8250_ASPEED_VUART should depend on ARCH_ASPEED 2022-07-14 16:27:55 +02:00
Makefile serial: 8250: Move Alpha-specific quirk out of the core 2021-12-30 13:23:44 +01:00
serial_cs.c serial_cs: Add Option International GSM-Ready 56K/ISDN modem 2021-06-16 09:20:29 +02:00