serial: stm32: use DMAT as a configuration bit
authorValentin Caron <valentin.caron@foss.st.com>
Tue, 8 Aug 2023 16:19:02 +0000 (18:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 13:28:51 +0000 (15:28 +0200)
commit00bc5e8fc91743753a3ac9de1e9567e844ae3967
treeb1cb2f7ede4afda9d360c7dac656095f43ece21c
parentdb89728abad5ab6b8f30349142897bd55f1f5b00
serial: stm32: use DMAT as a configuration bit

DMAT is a configuration bit so it should be set at the startup of uart
port and not when a DMA transfer begins.

This patch move set of DMAT into set_termios and remove DMAT reset except
in shutdown.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20230808161906.178996-3-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c