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>
Mon, 19 Feb 2024 08:43:37 +0000 (09:43 +0100)
commit3b69e32e151bc4a4e3c785cbdb1f918d5ee337ed
treea9f41fadbd993d12a7dff4595862a9204ab3d238
parentf418ae73311deb901c0110b08d1bbafc20c1820e
serial: amba-pl011: Fix DMA transmission in RS485 mode

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