All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/26] tty: drop low-latency workarounds
@ 2021-04-21  9:54 Johan Hovold
  2021-04-21  9:54 ` [PATCH 01/26] tty: mxser: drop low-latency workaround Johan Hovold
                   ` (26 more replies)
  0 siblings, 27 replies; 34+ messages in thread
From: Johan Hovold @ 2021-04-21  9:54 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Jiri Slaby, linux-serial, linux-kernel, Johan Hovold

The infamous low_latency behaviour of tty_flip_buffer_push(), which
meant that data could be pushed to the line discipline immediately
instead of being deferred to a work queue, was finally removed in 2014.

Since then there's no need for drivers to keep hacks to temporarily drop
the port lock during receive processing but this pattern has been
reproduced in later added drivers nonetheless.

Note that several of these workarounds were added by a series posted in
2013, which ended up being merged despite having completely nonsensical
commit messages. As it turned out, it was just the RT patch set which
effectively enabled the low_latency flag for serial drivers that did not
handle it.

There's of course nothing wrong releasing the port lock before calling
tty_flip_buffer_push(), and some drivers still do after this series, but
let's get rid of the completely unnecessary unlock-and-reacquire
pattern.

Johan


Johan Hovold (26):
  tty: mxser: drop low-latency workaround
  serial: altera_jtaguart: drop low-latency workaround
  serial: altera_uart: drop low-latency workaround
  serial: amba-pl010: drop low-latency workaround
  serial: amba-pl011: drop low-latency workaround
  serial: apbuart: drop low-latency workaround
  serial: ar933x: drop low-latency workaround
  serial: arc_uart: drop low-latency workaround
  serial: atmel_serial: drop low-latency workaround
  serial: bcm63xx: drop low-latency workaround
  serial: icom: drop low-latency workaround
  serial: lpc32xx_hs: drop low-latency workaround
  serial: mcf: drop low-latency workaround
  serial: meson: drop low-latency workaround
  serial: mpc52xx_uart: drop low-latency workaround
  serial: msm_serial: drop low-latency workaround
  serial: owl: drop low-latency workaround
  serial: rda: drop low-latency workaround
  serial: rp2: drop low-latency workaround
  serial: sa1100: drop low-latency workaround
  serial: txx9: drop low-latency workaround
  serial: sifive: drop low-latency workaround
  serial: sunsu: drop low-latency workaround
  serial: timbuart: drop low-latency workaround
  serial: vt8500: drop low-latency workaround
  serial: xilinx_uartps: drop low-latency workaround

 drivers/tty/mxser.c                  |  7 -------
 drivers/tty/serial/altera_jtaguart.c |  2 --
 drivers/tty/serial/altera_uart.c     |  2 --
 drivers/tty/serial/amba-pl010.c      |  2 --
 drivers/tty/serial/amba-pl011.c      |  2 --
 drivers/tty/serial/apbuart.c         |  2 --
 drivers/tty/serial/ar933x_uart.c     |  2 --
 drivers/tty/serial/arc_uart.c        |  2 --
 drivers/tty/serial/atmel_serial.c    | 18 ------------------
 drivers/tty/serial/bcm63xx_uart.c    |  2 --
 drivers/tty/serial/icom.c            |  2 --
 drivers/tty/serial/lpc32xx_hs.c      |  2 --
 drivers/tty/serial/mcf.c             |  2 --
 drivers/tty/serial/meson_uart.c      |  2 --
 drivers/tty/serial/mpc52xx_uart.c    |  2 --
 drivers/tty/serial/msm_serial.c      |  4 ----
 drivers/tty/serial/owl-uart.c        |  2 --
 drivers/tty/serial/rda-uart.c        |  2 --
 drivers/tty/serial/rp2.c             |  2 --
 drivers/tty/serial/sa1100.c          |  2 --
 drivers/tty/serial/serial_txx9.c     |  4 ++--
 drivers/tty/serial/sifive.c          |  2 --
 drivers/tty/serial/sunsu.c           |  4 ----
 drivers/tty/serial/timbuart.c        |  2 --
 drivers/tty/serial/vt8500_serial.c   |  2 --
 drivers/tty/serial/xilinx_uartps.c   |  3 +--
 26 files changed, 3 insertions(+), 77 deletions(-)

-- 
2.26.3


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

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

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21  9:54 [PATCH 00/26] tty: drop low-latency workarounds Johan Hovold
2021-04-21  9:54 ` [PATCH 01/26] tty: mxser: drop low-latency workaround Johan Hovold
2021-04-22  5:59   ` Jiri Slaby
2021-04-21  9:54 ` [PATCH 02/26] serial: altera_jtaguart: " Johan Hovold
2021-04-21 10:03   ` Tobias Klauser
2021-04-21  9:54 ` [PATCH 03/26] serial: altera_uart: " Johan Hovold
2021-04-21 10:03   ` Tobias Klauser
2021-04-21  9:54 ` [PATCH 04/26] serial: amba-pl010: " Johan Hovold
2021-04-21  9:54 ` [PATCH 05/26] serial: amba-pl011: " Johan Hovold
2021-04-22  0:18   ` Linus Walleij
2021-04-21  9:54 ` [PATCH 06/26] serial: apbuart: " Johan Hovold
2021-04-21  9:54 ` [PATCH 07/26] serial: ar933x: " Johan Hovold
2021-04-21  9:54 ` [PATCH 08/26] serial: arc_uart: " Johan Hovold
2021-04-21  9:54 ` [PATCH 09/26] serial: atmel_serial: " Johan Hovold
2021-04-21  9:54 ` [PATCH 10/26] serial: bcm63xx: " Johan Hovold
2021-04-21  9:54 ` [PATCH 11/26] serial: icom: " Johan Hovold
2021-04-21  9:54 ` [PATCH 12/26] serial: lpc32xx_hs: " Johan Hovold
2021-04-21  9:54 ` [PATCH 13/26] serial: mcf: " Johan Hovold
2021-04-21  9:54 ` [PATCH 14/26] serial: meson: " Johan Hovold
2021-04-21  9:54 ` [PATCH 15/26] serial: mpc52xx_uart: " Johan Hovold
2021-04-21  9:54 ` [PATCH 16/26] serial: msm_serial: " Johan Hovold
2021-04-21 17:44   ` Bjorn Andersson
2021-04-21  9:55 ` [PATCH 17/26] serial: owl: " Johan Hovold
2021-04-21  9:55 ` [PATCH 18/26] serial: rda: " Johan Hovold
2021-04-21  9:55 ` [PATCH 19/26] serial: rp2: " Johan Hovold
2021-04-21  9:55 ` [PATCH 20/26] serial: sa1100: " Johan Hovold
2021-04-21  9:55 ` [PATCH 21/26] serial: txx9: " Johan Hovold
2021-04-21  9:55 ` [PATCH 22/26] serial: sifive: " Johan Hovold
2021-04-21  9:55 ` [PATCH 23/26] serial: sunsu: " Johan Hovold
2021-04-21 16:56   ` David Miller
2021-04-21  9:55 ` [PATCH 24/26] serial: timbuart: " Johan Hovold
2021-04-21  9:55 ` [PATCH 25/26] serial: vt8500: " Johan Hovold
2021-04-21  9:55 ` [PATCH 26/26] serial: xilinx_uartps: " Johan Hovold
2021-04-22 10:09 ` [PATCH 00/26] tty: drop low-latency workarounds Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.