mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
serial: stm32: fix tx dma completion, release channel
[ Upstream commitfb4f2e04ac] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1f308f65d8
commit
a98c0683a3
|
|
@ -291,6 +291,7 @@ static void stm32_usart_tx_dma_complete(void *arg)
|
||||||
struct stm32_port *stm32port = to_stm32_port(port);
|
struct stm32_port *stm32port = to_stm32_port(port);
|
||||||
const struct stm32_usart_offsets *ofs = &stm32port->info->ofs;
|
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);
|
stm32_usart_clr_bits(port, ofs->cr3, USART_CR3_DMAT);
|
||||||
stm32port->tx_dma_busy = false;
|
stm32port->tx_dma_busy = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user