WSL2-Linux-Kernel/drivers/tty/serial/8250
Doug Berger 3adc11febf serial: 8250_bcm7271: use default_mux_rate if possible
commit 614a19b89ca43449196a8af1afac7d55c6781687 upstream.

There is a scenario when resuming from some power saving states
with no_console_suspend where console output can be generated
before the 8250_bcm7271 driver gets the opportunity to restore
the baud_mux_clk frequency. Since the baud_mux_clk is at its
default frequency at this time the output can be garbled until
the driver gets the opportunity to resume.

Since this is only an issue with console use of the serial port
during that window and the console isn't likely to use baud
rates that require alternate baud_mux_clk frequencies, allow the
driver to select the default_mux_rate if it is accurate enough.

Fixes: 41a469482d ("serial: 8250: Add new 8250-core based Broadcom STB driver")
Cc: stable@vger.kernel.org
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20240424222559.1844045-1-opendmb@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:39:12 +02:00
..
8250.h Revert "8250: add support for ASIX devices with a FIFO bug" 2023-07-23 13:47:54 +02:00
8250_accent.c
8250_acorn.c
8250_aspeed_vuart.c
8250_bcm2835aux.c
8250_bcm7271.c serial: 8250_bcm7271: use default_mux_rate if possible 2024-06-16 13:39:12 +02:00
8250_boca.c
8250_core.c serial: 8250: Reinit port->pm on port specific driver unbind 2023-05-24 17:36:47 +01:00
8250_dma.c serial: 8250_dma: Fix DMA Rx rearm race 2023-02-09 11:26:46 +01:00
8250_dw.c serial: 8250_dw: Store LSR into lsr_saved_flags in dw8250_tx_wait_empty() 2022-08-17 14:24:03 +02:00
8250_dwlib.c serial: 8250_dw: Preserve original value of DLF register 2023-08-03 10:22:40 +02:00
8250_dwlib.h
8250_early.c serial: 8250_omap: Add earlycon support for the AM654 UART controller 2023-12-13 18:36:49 +01:00
8250_em.c serial: 8250_em: Fix UART port type 2023-03-22 13:31:32 +01:00
8250_exar.c serial: 8250_exar: Don't remove GPIO device on suspend 2024-03-26 18:21:34 -04:00
8250_exar_st16c554.c
8250_fintek.c
8250_fourport.c
8250_fsl.c serial: 8250_fsl: fix handle_irq locking 2023-03-22 13:31:32 +01:00
8250_gsc.c
8250_hp300.c
8250_hub6.c
8250_ingenic.c
8250_ioc3.c
8250_lpc18xx.c
8250_lpss.c serial: 8250_lpss: Use 16B DMA burst with Elkhart Lake 2022-11-26 09:24:49 +01:00
8250_men_mcb.c
8250_mid.c
8250_mtk.c
8250_of.c
8250_omap.c serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed 2024-01-25 14:52:50 -08:00
8250_pci.c tty: 8250: Add Brainboxes Oxford Semiconductor-based quirks 2023-11-08 17:26:51 +01:00
8250_pnp.c
8250_port.c serial: Lock console when calling into driver before registration 2024-04-10 16:18:38 +02:00
8250_pxa.c
8250_tegra.c serial: 8250_tegra: Fix an error handling path in tegra_uart_probe() 2023-06-09 10:32:33 +02:00
8250_uniphier.c
Kconfig serial: 8250: ASPEED_VUART: select REGMAP instead of depending on it 2023-03-30 12:47:42 +02:00
Makefile
serial_cs.c