]> git.baikalelectronics.ru Git - kernel.git/commit
serial: stm32: re-introduce an irq flag condition in usart_receive_chars
authorErwan Le Ray <erwan.leray@foss.st.com>
Wed, 20 Oct 2021 15:03:30 +0000 (17:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Oct 2021 08:36:29 +0000 (10:36 +0200)
commitf61f09706fb5d91c373ee878c8f5fcba072f1496
treee87aaf29a10ebc4828e39579c3ce3bc137a3348c
parent517aafd6533f009f9f62428624d69d63afa338aa
serial: stm32: re-introduce an irq flag condition in usart_receive_chars

Re-introduce an irq flag condition in usart_receive_chars.
This condition has been deleted by commit 1d2b9dd9cc2e ("serial: do not
restore interrupt state in sysrq helper").
This code was present to handle threaded case, and has been removed
because it is no more needed in this case. Nevertheless an irq safe lock
is still needed in some cases, when DMA should be stopped to receive errors
or breaks in PIO mode.
This patch is a precursor to the complete rework or stm32 serial driver
DMA implementation.

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