serial: stm32: defer probe for dma devices
authorErwan Le Ray <erwan.leray@foss.st.com>
Thu, 10 Jun 2021 10:00:20 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 12:02:21 +0000 (14:02 +0200)
commita7770a4bfcf4e6dea406304c2386c6a9505e9999
treee63440ff819c5028a5aa2cf286e884e1751fbf06
parentaf9a1f61ac331c2f910d9186767d02f8e982c38e
serial: stm32: defer probe for dma devices

Defer device probe operation when a DMA channel request probe deferral.

With this change both DMA channels are acquired before DMA channels are
configured. Once no probe deferral is expected, DMAs are
configured and any failure in their configuration will make the driver
to fallback to interrupt mode as prior this change.

Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Link: https://lore.kernel.org/r/20210610100020.2318-1-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c