linux-stable/drivers/tty
Kartik Rajput 3cbde92874 serial: amba-pl011: Fix RX stall when DMA is used
[ Upstream commit 2bcacc1c87 ]

Function pl011_throttle_rx() calls pl011_stop_rx() to disable RX, which
also disables the RX DMA by clearing the RXDMAE bit of the DMACR
register. However, to properly unthrottle RX when DMA is used, the
function pl011_unthrottle_rx() is expected to set the RXDMAE bit of
the DMACR register, which it currently lacks. This causes RX to stall
after the throttle API is called.

Set RXDMAE bit in the DMACR register while unthrottling RX if RX DMA is
used.

Fixes: 211565b100 ("serial: pl011: UPSTAT_AUTORTS requires .throttle/unthrottle")
Cc: stable@vger.kernel.org
Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241113092629.60226-1-kkartik@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:51:29 +01:00
..
hvc
ipwireless
serdev
serial serial: amba-pl011: Fix RX stall when DMA is used 2024-12-14 19:51:29 +01:00
vt vt: prevent kernel-infoleak in con_font_get() 2024-11-08 16:25:56 +01:00
amiserial.c
ehv_bytechan.c
goldfish.c
Kconfig
Makefile
mips_ejtag_fdc.c
moxa.c
moxa.h
mxser.c
n_gsm.c
n_hdlc.c
n_null.c
n_tty.c
nozomi.c
pty.c
synclink_gt.c
sysrq.c
tty_audit.c
tty_baudrate.c
tty_buffer.c
tty_io.c
tty_ioctl.c
tty_jobctrl.c
tty_ldisc.c tty: ldsic: fix tty_ldisc_autoload sysctl's proc_handler 2024-12-14 19:51:14 +01:00
tty_ldsem.c
tty_mutex.c
tty_port.c
tty.h
ttynull.c
vcc.c