Home
last modified time | relevance | path

Searched hist:db89728abad5ab6b8f30349142897bd55f1f5b00 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/tty/serial/
H A Dstm32-usart.cdiff db89728abad5ab6b8f30349142897bd55f1f5b00 Tue Aug 08 11:19:01 CDT 2023 Valentin Caron <valentin.caron@foss.st.com> serial: stm32: avoid clearing DMAT bit during transfer

It's rather advised to rely on DMA pause / resume instead of
clearing/setting DMA request enable bit for the same purpose. Some DMA
request/acknowledge race may encountered by doing so. We prefer to use
dmaengine_pause and resume instead to pause a dma transfer when it is
necessary.

It is also safer to close DMA before reset DMAT in stm32_usart_shutdown.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20230808161906.178996-2-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>