mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
serial: stm32: re-introduce an irq flag condition in usart_receive_chars
[ Upstream commitcc58d0a3f0] Re-introduce an irq flag condition in usart_receive_chars. This condition has been deleted by commit75f4e830fa("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> Stable-dep-of:c47527cbcc("serial: stm32: Re-assert RTS/DE GPIO in RS485 mode only if more data are transmitted") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
4b7bb1c7be
commit
59ed254dd3
1 changed files with 13 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue