summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorNicolai Buchwitz <nb@tipi-net.de>2026-10-12 16:23:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-14 15:13:35 +0200
commit97f85204275ae4d7fb530e451f3acc65c1ec1155 (patch)
treeff851529e10d60abe673f725dbaf0b6e5cbe8086 /include/linux/debugobjects.h
parent171bb8a67cc1af7c88a65961adfb028430e0b783 (diff)
serial: amba-pl011: keep transmitter enabled when disabling RS485
Disabling RS485 on an open port calls pl011_rs485_tx_stop(), which turns off the transmitter. Only the RS485 TX path turns it back on, so any later output stays queued and tcdrain() hangs until the port is closed. pl011_rs485_tx_stop() also checks only the hardware FIFO. If a DMA transfer has started but has not filled the FIFO yet, the transmitter is turned off under the transfer and the DMA channel never recovers. When leaving RS485 mode, cancel pending deferred starts and stops, leave the transmitter enabled and start any TX that was still waiting for delay_rts_before_send. Fixes: 8d479237727c ("serial: amba-pl011: add RS485 support") Cc: stable@kernel.org Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de> Link: https://patch.msgid.link/20261012-fix-pl011-rs485-txe-v2-1-e9bf7d218389@tipi-net.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions