linux/drivers/tty/serial
Daniel Golle d518314a1f serial: 8250_mtk: Enable baud clock and manage in runtime PM
Some MediaTek SoCs got a gated UART baud clock, which currently gets
disabled as the clk subsystem believes it would be unused. This results in
the uart freezing right after "clk: Disabling unused clocks" on those
platforms.

Request the baud clock to be prepared and enabled during probe, and to
restore run-time power management capabilities to what it was before commit
e32a83c70c ("serial: 8250-mtk: modify mtk uart power and clock
management") disable and unprepare the baud clock when suspending the UART,
prepare and enable it again when resuming it.

Fixes: e32a83c70c ("serial: 8250-mtk: modify mtk uart power and clock management")
Fixes: b6c7ff2693 ("serial: 8250_mtk: Simplify clock sequencing and runtime PM")
Cc: stable <stable@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/de5197ccc31e1dab0965cabcc11ca92e67246cf6.1758058441.git.daniel@makrotopia.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-22 12:13:54 +02:00
..
8250 serial: 8250_mtk: Enable baud clock and manage in runtime PM 2025-10-22 12:13:54 +02:00
jsm
21285.c
Kconfig TTY/Serial update for 6.18-rc1 2025-10-04 15:57:44 -07:00
Makefile serial: sh-sci: Add support for RZ/T2H SCI 2025-07-09 13:45:30 +02:00
altera_jtaguart.c
altera_uart.c
amba-pl010.c
amba-pl011.c
apbuart.c
apbuart.h
ar933x_uart.c
arc_uart.c
atmel_serial.c
atmel_serial.h
bcm63xx_uart.c
clps711x.c
cpm_uart.c
cpm_uart.h
digicolor-usart.c
dz.c
dz.h
earlycon-riscv-sbi.c
earlycon-semihost.c
earlycon.c
esp32_acm.c
esp32_uart.c
fsl_linflexuart.c
fsl_lpuart.c
icom.c
imx.c
imx_earlycon.c
ip22zilog.c tty: serial: ip22zilog: Use platform device for probing 2025-08-14 11:58:40 +02:00
ip22zilog.h
kgdboc.c
lantiq.c
liteuart.c
lpc32xx_hs.c
ma35d1_serial.c
max310x.c serial: max310x: improve interrupt handling 2025-09-12 16:10:16 +02:00
max3100.c tty: serial: Modify the use of dev_err_probe() 2025-08-21 08:09:20 +02:00
mcf.c
men_z135_uart.c
meson_uart.c
milbeaut_usio.c
mpc52xx_uart.c
mps2-uart.c
msm_serial.c tty: remove redundant condition checks 2025-09-06 15:49:58 +02:00
mux.c
mvebu-uart.c tty: serial: mvebu-uart: convert from round_rate() to determine_rate() 2025-08-14 11:59:04 +02:00
mxs-auart.c
omap-serial.c
owl-uart.c
pch_uart.c pch_uart: Fix dma_sync_sg_for_device() nents value 2025-07-09 13:43:02 +02:00
pic32_uart.c
pmac_zilog.c
pmac_zilog.h
pxa.c
qcom_geni_serial.c TTY driver fix for 6.18-rc1 2025-10-07 11:36:01 -07:00
rda-uart.c
rp2.c
rsci.c serial: sh-sci: Add support for RZ/T2H SCI 2025-07-09 13:45:30 +02:00
rsci.h serial: sh-sci: Add support for RZ/T2H SCI 2025-07-09 13:45:30 +02:00
sa1100.c
samsung_tty.c
sb1250-duart.c
sc16is7xx.c serial: sc16is7xx: remove useless enable of enhanced features 2025-10-22 12:12:06 +02:00
sc16is7xx.h
sc16is7xx_i2c.c
sc16is7xx_spi.c
sccnxp.c
serial-tegra.c
serial_base.h
serial_base_bus.c
serial_core.c serial: serial_core: use guard()s 2025-08-17 12:46:26 +02:00
serial_ctrl.c
serial_mctrl_gpio.c
serial_mctrl_gpio.h
serial_port.c
serial_txx9.c
sh-sci-common.h serial: sh-sci: Add support for RZ/T2H SCI 2025-07-09 13:45:30 +02:00
sh-sci.c tty: serial: sh-sci: fix RSCI FIFO overrun handling 2025-10-22 12:11:17 +02:00
sh-sci.h
sifive.c
sprd_serial.c
st-asc.c
stm32-usart.c
stm32-usart.h
suncore.c
sunhv.c
sunplus-uart.c
sunsab.c
sunsab.h
sunsu.c
sunzilog.c
sunzilog.h
tegra-tcu.c
tegra-utc.c
timbuart.c
timbuart.h
uartlite.c
ucc_uart.c
vt8500_serial.c
xilinx_uartps.c serial: xilinx_uartps: read reg size from DTS 2025-09-06 15:51:47 +02:00
zs.c
zs.h