serial: stm32: add support for "flush_buffer" ops
authorErwan Le Ray <erwan.leray@foss.st.com>
Thu, 4 Mar 2021 16:23:08 +0000 (17:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:11 +0000 (09:34 +0100)
commit3d82be8be6fdf38543fa3ae9c35beda4a8a8d067
treed8bc9cf9ab4a717db5ad7432e2a451ff5102daca
parent3db1d52466dc11dca4e47ef12a6e6e97f846af62
serial: stm32: add support for "flush_buffer" ops

Add the support for "flush_buffer" ops in order to flush any write buffers,
reset any DMA state and stop any ongoing DMA transfers when the
port->state->xmit circular buffer is cleared.

Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20210304162308.8984-14-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c