diff options
author | Johan Hovold <[email protected]> | 2024-09-06 15:13:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-11 15:44:45 +0200 |
commit | f97cdbbf187fefcf1fe19689cd9fdca11fe9c3eb (patch) | |
tree | 318a35bb7664b280e07f93cf0602ee460180eeeb /drivers/fpga/fpga-bridge.c | |
parent | c80ee36ac8f9e9c27d8e097a2eaaf198e7534c83 (diff) |
serial: qcom-geni: fix false console tx restart
Commit 663abb1a7a7f ("tty: serial: qcom_geni_serial: Fix UART hang")
addressed an issue with stalled tx after the console code interrupted
the last bytes of a tx command by reenabling the watermark interrupt if
there is data in write buffer. This can however break software flow
control by re-enabling tx after the user has stopped it.
Address the original issue by not clearing the CMD_DONE flag after
polling for command completion. This allows the interrupt handler to
start another transfer when the CMD_DONE interrupt has not been disabled
due to flow control.
Fixes: c4f528795d1a ("tty: serial: msm_geni_serial: Add serial driver support for GENI based QUP")
Fixes: 663abb1a7a7f ("tty: serial: qcom_geni_serial: Fix UART hang")
Cc: [email protected] # 4.17
Reviewed-by: Douglas Anderson <[email protected]>
Tested-by: NĂcolas F. R. A. Prado <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions