Skip to content

serial: xuartps: hardware race condition and cleanup

Helmut Grohne linux-arm-kernel linux-serial 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 0 repliesNew

Changes in v3 from the cover letter

* Do not attempt to disable the transmitter after a transmission (original behaviour around 3.14). These patches no longer touch with the transmitter state at all as requested by S?ren Brinkmann.
* Add Acked-by/Reviewed-by tags from S?ren Brinkmann after addressing his remarks.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3serial: xuartps: fix typo in cdns_uart_startupdrivers/tty/serial/xilinx_uartps.c+1 -10 replies
2/3serial: xuartps: reduce hardware TX race conditiondrivers/tty/serial/xilinx_uartps.c+7 -120 replies
3/3serial: xuartps: remove unnecessary register writedrivers/tty/serial/xilinx_uartps.c+0 -20 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchS?ren Brinkmann
1/3R-b
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] serial: xuartps: hardware race condition and cleanup

The character transmission in xuartps is racy. If the transmitter is disabled early, the device is confused and produces a desync. Garbage on the remote end can be a visible symptom. The second patch in this series tries to reduce that race condition in accordance with the hardware documentation, but it cannot remove it entirely. The first and third patches are code cleanup.

Changes since v2:
* Do not attempt to disable the transmitter after a transmission (original behaviour around 3.14). These patches no longer touch with the transmitter state at all as requested by S?ren Brinkmann.
* Add Acked-by/Reviewed-by tags from S?ren Brinkmann after addressing his remarks.

Earlier patches/discussion at:

    https://www.spinics.net/lists/linux-serial/msg23145.html
    https://www.spinics.net/lists/linux-serial/msg23156.html
    https://www.spinics.net/lists/linux-serial/msg23157.html

Helmut Grohne (3):
serial: xuartps: fix typo in cdns_uart_startup
serial: xuartps: reduce hardware TX race condition
serial: xuartps: remove unnecessary register write

 drivers/tty/serial/xilinx_uartps.c | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)
Signature · 1 line
2.11.0