tty: serial: qcom_geni_serial: Remove interrupt storm
authorRyan Case <ryandcase@chromium.org>
Thu, 13 Dec 2018 19:43:20 +0000 (11:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 15:38:53 +0000 (16:38 +0100)
commit4d1a94fa6d14fac758fae0040c19802b7ea7fb1e
treec316def8ea4a152212bd38aeaa5f6b93d9512591
parent0a38fd9326fde16597dc7eef274be46bdc8cdcee
tty: serial: qcom_geni_serial: Remove interrupt storm

[ Upstream commit 64a428077758383518c258641e81d57fcd454792 ]

Disable M_TX_FIFO_WATERMARK_EN after we've sent all data for a given
transaction so we don't continue to receive a flurry of free space
interrupts while waiting for the M_CMD_DONE notification. Re-enable the
watermark when establishing the next transaction.

Also clear the watermark interrupt after filling the FIFO so we do not
receive notification again prior to actually having free space.

Signed-off-by: Ryan Case <ryandcase@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/qcom_geni_serial.c