]> git.baikalelectronics.ru Git - kernel.git/commit
serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.
authordelisun <delisun@pateo.com.cn>
Thu, 10 Nov 2022 02:01:08 +0000 (10:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:23 +0000 (11:41 +0100)
commit9ae561b0cacbce2c9ce3f2d61c3c889c31999859
treede1fc44b656893b7ec01d937da288ef0b0748bca
parentaaec441cc6cd62375d38248b0d542a804402779d
serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.

[ Upstream commit 032d5a71ed378ffc6a2d41a187d8488a4f9fe415 ]

Clearing the RX FIFO will cause data loss.
Copy the pl011_enabl_interrupts implementation, and remove the clear
interrupt and FIFO part of the code.

Fixes: e249a25a3e31 ("serial: pl011: UPSTAT_AUTORTS requires .throttle/unthrottle")
Signed-off-by: delisun <delisun@pateo.com.cn>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20221110020108.7700-1-delisun@pateo.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/amba-pl011.c