mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
serial: stm32: fix tx dma completion, release channel
This patch add a proper release of dma channels when completing dma tx.
Fixes: 3489187204
("serial: stm32: adding dma support")
Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20210304162308.8984-9-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
436c979360
commit
fb4f2e04ac
@ -292,6 +292,7 @@ static void stm32_usart_tx_dma_complete(void *arg)
|
||||
struct stm32_port *stm32port = to_stm32_port(port);
|
||||
const struct stm32_usart_offsets *ofs = &stm32port->info->ofs;
|
||||
|
||||
dmaengine_terminate_async(stm32port->tx_ch);
|
||||
stm32_usart_clr_bits(port, ofs->cr3, USART_CR3_DMAT);
|
||||
stm32port->tx_dma_busy = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user