OpenCloudOS-Kernel/drivers/tty/serial/8250
Ruihong Luo 748c5ea8b8 serial: 8250_dw: Preserve original value of DLF register
Preserve the original value of the Divisor Latch Fraction (DLF) register.
When the DLF register is modified without preservation, it can disrupt
the baudrate settings established by firmware or bootloader, leading to
data corruption and the generation of unreadable or distorted characters.

Fixes: 701c5e73b2 ("serial: 8250_dw: add fractional divisor support")
Cc: stable <stable@kernel.org>
Signed-off-by: Ruihong Luo <colorsu1922@gmail.com>
Link: https://lore.kernel.org/stable/20230713004235.35904-1-colorsu1922%40gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230713004235.35904-1-colorsu1922@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-25 20:31:31 +02:00
..
8250.h Revert "8250: add support for ASIX devices with a FIFO bug" 2023-06-21 17:55:53 +02:00
8250_accent.c tty: serial: Remove redundant license text 2017-11-08 13:08:12 +01:00
8250_acorn.c tty: serial: Remove redundant license text 2017-11-08 13:08:12 +01:00
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: synchronize and annotate UART_IER access 2023-05-30 11:45:42 +01:00
8250_bcm2835aux.c serial: 8250_bcm2835aux: Add missing clk_disable_unprepare() 2022-07-28 10:33:44 +02:00
8250_bcm7271.c serial: 8250: lock port in startup() callbacks 2023-05-30 11:45:42 +01:00
8250_boca.c tty: serial: Remove redundant license text 2017-11-08 13:08:12 +01:00
8250_core.c serial: core: Start managing serial controllers to enable runtime PM 2023-05-31 10:46:59 +01:00
8250_dfl.c tty: serial: 8250: add DFL bus driver for Altera 16550. 2023-01-19 16:07:40 +01:00
8250_dma.c serial: 8250_dma: Fix DMA Rx rearm race 2023-01-31 11:15:16 +01:00
8250_dw.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_dwlib.c serial: 8250_dw: Preserve original value of DLF register 2023-07-25 20:31:31 +02:00
8250_dwlib.h serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_early.c serial: 8250: RT288x/Au1xxx code away from core 2023-05-13 19:47:26 +09:00
8250_em.c serial: 8250: Change dl_read/write to handle value as u32 2023-05-13 19:47:26 +09:00
8250_exar.c serial: 8250: lock port in startup() callbacks 2023-05-30 11:45:42 +01:00
8250_exar_st16c554.c tty: serial: Remove redundant license text 2017-11-08 13:08:12 +01:00
8250_fintek.c serial: Make ->set_termios() old ktermios const 2022-08-30 14:22:35 +02:00
8250_fourport.c tty: serial: Remove redundant license text 2017-11-08 13:08:12 +01:00
8250_fsl.c serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE 2023-06-13 12:27:05 +02:00
8250_hp300.c tty: add SPDX identifiers to all remaining files in drivers/tty/ 2017-11-08 13:08:12 +01:00
8250_hub6.c tty: serial: Remove redundant license text 2017-11-08 13:08:12 +01:00
8250_ingenic.c serial: 8250/ingenic: Add support for the JZ4750/JZ4755 2022-11-03 03:43:05 +01: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: 8250_lpss: Use 16B DMA burst with Elkhart Lake 2022-11-09 13:04:39 +01: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: 8250_mtk: Simplify clock sequencing and runtime PM 2023-06-06 14:43:13 +02:00
8250_of.c serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE 2023-06-13 12:27:05 +02:00
8250_omap.c serial: 8250_omap: Use force_suspend and resume for system suspend 2023-06-15 12:20:49 +02:00
8250_parisc.c parisc/serial: Rename 8250_gsc.c to 8250_parisc.c 2022-10-21 08:10:46 +02:00
8250_pci.c Revert "8250: add support for ASIX devices with a FIFO bug" 2023-06-21 17:55:53 +02:00
8250_pci1xxxx.c serial: 8250_pci1xxxx: Add power management functions to quad-uart driver 2023-02-08 13:10:15 +01:00
8250_pcilib.c serial: 8250_pci: Add serial8250_pci_setup_port definition in 8250_pcilib.c 2023-02-08 13:10:15 +01:00
8250_pcilib.h serial: 8250_pci: Add serial8250_pci_setup_port definition in 8250_pcilib.c 2023-02-08 13:10:15 +01: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 Revert "8250: add support for ASIX devices with a FIFO bug" 2023-06-21 17:55:53 +02:00
8250_pxa.c serial: 8250: Change dl_read/write to handle value as u32 2023-05-13 19:47:26 +09:00
8250_rt288x.c serial: 8250_rt288x: Remove unnecessary UART_REG_UNMAPPED 2023-05-13 19:47:26 +09:00
8250_tegra.c serial: 8250_tegra: Fix an error handling path in tegra_uart_probe() 2023-05-30 12:24:07 +01:00
8250_uniphier.c serial: 8250: Change dl_read/write to handle value as u32 2023-05-13 19:47:26 +09:00
Kconfig serial: 8250: Apply FSL workarounds also without SERIAL_8250_CONSOLE 2023-06-13 12:27:05 +02:00
Makefile serial: 8250: RT288x/Au1xxx code away from core 2023-05-13 19:47:26 +09:00
serial_cs.c serial_cs: Add Option International GSM-Ready 56K/ISDN modem 2021-06-16 09:20:29 +02:00