diff options
author | Valentin Caron <valentin.caron@foss.st.com> | 2022-11-18 18:06:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-22 17:52:25 +0100 |
commit | 0d114e9ff940ebad8e88267013bf96c605a6b336 (patch) | |
tree | 4366cee4079110f6b64837ea9fc4285df855eda7 /drivers/tty/serial/meson_uart.c | |
parent | dt-bindings: serial: xlnx,opb-uartlite: Drop 'contains' from 'xlnx,use-parity' (diff) | |
download | linux-0d114e9ff940ebad8e88267013bf96c605a6b336.tar.xz linux-0d114e9ff940ebad8e88267013bf96c605a6b336.zip |
serial: stm32: move dma_request_chan() before clk_prepare_enable()
If dma_request_chan() returns a PROBE_DEFER error, clk_disable_unprepare()
will be called and USART clock will be disabled. But early console can be
still active on the same USART.
While moving dma_request_chan() before clk_prepare_enable(), the clock
won't be taken in case of a DMA PROBE_DEFER error, and so it doesn't need
to be disabled. Then USART is still clocked for early console.
Fixes: a7770a4bfcf4 ("serial: stm32: defer probe for dma devices")
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20221118170602.1057863-1-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/meson_uart.c')
0 files changed, 0 insertions, 0 deletions