serial: stm32: fix DMA initialization error handling
authorErwan Le Ray <erwan.leray@foss.st.com>
Wed, 6 Jan 2021 16:21:56 +0000 (17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 15:19:28 +0000 (16:19 +0100)
commite7997f7ff7f8154d477f6f976698d868a2ac3934
treeea8d5a57942128c6e96b470f7b40ede61ab80b7e
parentc762a2b846b619c0f92f23e2e8e16f70d20df800
serial: stm32: fix DMA initialization error handling

DMA initialization error handling is not properly implemented in the
driver.
Fix DMA initialization error handling by:
- moving TX DMA descriptor request error handling in a new dedicated
fallback_err label
- adding error handling to TX DMA descriptor submission
- adding error handling to RX DMA descriptor submission

This patch depends on '24832ca3ee85 ("tty: serial: stm32-usart: Remove set
but unused 'cookie' variables")' which unfortunately doesn't include a
"Fixes" tag.

Fixes: 3489187204eb ("serial: stm32: adding dma support")
Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20210106162203.28854-2-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c