linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] serial: xuartps: hardware race condition and cleanup
@ 2018-06-04 10:21 Helmut Grohne
  2018-06-04 10:22 ` [PATCH v3 1/3] serial: xuartps: fix typo in cdns_uart_startup Helmut Grohne
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Helmut Grohne @ 2018-06-04 10:21 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Michal Simek, linux-serial
  Cc: linux-arm-kernel, Uwe Kleine-König

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(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-04 10:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-04 10:21 [PATCH v3 0/3] serial: xuartps: hardware race condition and cleanup Helmut Grohne
2018-06-04 10:22 ` [PATCH v3 1/3] serial: xuartps: fix typo in cdns_uart_startup Helmut Grohne
2018-06-04 10:22 ` [PATCH v3 2/3] serial: xuartps: reduce hardware TX race condition Helmut Grohne
2018-06-04 10:22 ` [PATCH v3 3/3] serial: xuartps: remove unnecessary register write Helmut Grohne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).