]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sprd: Add clearing break interrupt operation
authorYonghan Ye <yonghan.ye@unisoc.com>
Wed, 4 Dec 2019 12:00:07 +0000 (20:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Dec 2019 13:26:59 +0000 (14:26 +0100)
commite0bae2ca0c0d39d088652cc907107c65b4bc550d
treeda346c5362b7de8ba104dfa298616ba20d56ec7d
parente74212deeb6bbf7d2eff2486d7123088fe6d5aa1
serial: sprd: Add clearing break interrupt operation

A break interrupt will be generated if the RX line was pulled low, which
means some abnomal behaviors occurred of the UART. In this case, we still
need to clear this break interrupt status, otherwise it will cause irq
storm to crash the whole system.

Fixes: 711fcb0c5d2d ("tty/serial: Add Spreadtrum sc9836-uart driver support")
Signed-off-by: Yonghan Ye <yonghan.ye@unisoc.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/925e51b73099c90158e080b8f5bed9b3b38c4548.1575460601.git.baolin.wang7@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c