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
1 changed files with 1 additions and 0 deletions
|
|
@ -291,6 +291,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…
Add table
Add a link
Reference in a new issue