]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: amba-pl011: Fix DMA transmission in RS485 mode
authorLino Sanfilippo <l.sanfilippo@kunbus.com>
Fri, 16 Feb 2024 22:47:08 +0000 (23:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:35:02 +0000 (13:35 +0100)
commit9319ecb8380ffee62a918b08f6146c0e43766463
tree5f51520cd09fe2772da8e0eefd406b15bd9fc92f
parent3e3578ca1b877a49a7521e600d51658d6d794267
serial: amba-pl011: Fix DMA transmission in RS485 mode

commit 3b69e32e151bc4a4e3c785cbdb1f918d5ee337ed upstream.

When DMA is used in RS485 mode make sure that the UARTs tx section is
enabled before the DMA buffers are queued for transmission.

Cc: stable@vger.kernel.org
Fixes: 8d479237727c ("serial: amba-pl011: add RS485 support")
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Link: https://lore.kernel.org/r/20240216224709.9928-2-l.sanfilippo@kunbus.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c