kernel_samsung_a53x/drivers/tty/serial/8250
Bin Liu 3df7897059 serial: 8250: omap: Move pm_runtime_get_sync
commit bcc7ba668818dcadd2f1db66b39ed860a63ecf97 upstream.

Currently in omap_8250_shutdown, the dma->rx_running flag is
set to zero in omap_8250_rx_dma_flush. Next pm_runtime_get_sync
is called, which is a runtime resume call stack which can
re-set the flag. When the call omap_8250_shutdown returns, the
flag is expected to be UN-SET, but this is not the case. This
is causing issues the next time UART is re-opened and
omap_8250_rx_dma is called. Fix by moving pm_runtime_get_sync
before the omap_8250_rx_dma_flush.

cc: stable@vger.kernel.org
Fixes: 0e31c8d173ab ("tty: serial: 8250_omap: add custom DMA-RX callback")
Signed-off-by: Bin Liu <b-liu@ti.com>
[Judith: Add commit message]
Signed-off-by: Judith Mendez <jm@ti.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20241031172315.453750-1-jm@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-17 13:24:19 +01:00
..
8250.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_accent.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_acorn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_aspeed_vuart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_bcm2835aux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_boca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_core.c serial: Add rs485_supported to uart_port 2024-11-18 12:13:34 +01:00
8250_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dwlib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_dwlib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_early.c serial: 8250_omap: Add earlycon support for the AM654 UART controller 2024-11-18 12:11:46 +01:00
8250_em.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_exar.c serial: exar: adding missing CTI and Exar PCI ids 2024-11-19 14:19:07 +01:00
8250_exar_st16c554.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_fintek.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_fourport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_fsl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_gsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_hp300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_hub6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_ingenic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_ioc3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_lpc18xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_lpss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_men_mcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_mid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_mtk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_omap.c serial: 8250: omap: Move pm_runtime_get_sync 2024-12-17 13:24:19 +01:00
8250_pci.c tty: 8250: Add support for Intashield IS-100 2024-11-18 10:58:48 +01:00
8250_pnp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_port.c serial: Lock console when calling into driver before registration 2024-11-19 09:22:18 +01:00
8250_pxa.c serial: 8250_pxa: Configure tx_loadsz to match FIFO IRQ level 2024-11-19 14:19:05 +01:00
8250_tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8250_uniphier.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serial_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00