Erwan Le Ray 0e44f1e183 serial: stm32: fix DMA initialization error handling
[ Upstream commit e7997f7ff7f8154d477f6f976698d868a2ac3934 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-25 09:04:10 +01:00
..
2020-10-28 13:39:14 +01:00
2020-08-31 07:19:25 +02:00
2020-01-29 10:13:27 -08:00
2020-08-18 13:51:18 +02:00
2020-07-20 09:39:11 +02:00
2020-05-15 12:22:19 +02:00
2020-10-05 13:32:30 +02:00
2020-08-18 13:51:18 +02:00
2020-01-29 10:13:27 -08:00
2020-09-27 14:17:43 +02:00
2020-04-16 16:13:34 +02:00
2021-01-27 11:54:59 +01:00
2020-01-29 10:13:27 -08:00