]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 17 Dec 2018 14:06:46 +0000 (15:06 +0100)
commitc6f0ca871b1eb8e4f0930195ed53629543fda2da
tree1ff39edff85659f12f53861d7dc65868d6c6a154
parentbdd9ca519389bf56c082ed50bbaea8bced327638
tty: serial: qcom_geni_serial: Remove interrupt storm

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>
drivers/tty/serial/qcom_geni_serial.c