Skip to content

tty: cleanup no. 99

Jiri Slaby (SUSE) linux-alpha linux-mmc linux-serial linux-staging lkml netdev sparclinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest31 patches 6 repliesIn review
  2. v129 patches 13 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/31tty: convert "TTY Struct Flags" to an enumDocumentation/driver-api/tty/tty_struct.rst include/linux/tty.h+28 -260 replies
2/31tty: audit: do not use N_TTY_BUF_SIZEdrivers/tty/tty_audit.c+6 -40 replies
3/31tty: caif: do not use N_TTY_BUF_SIZEdrivers/net/caif/caif_serial.c+1 -11 reply
4/31tty: move N_TTY_BUF_SIZE to n_ttydrivers/tty/n_tty.c include/linux/tty.h+2 -10 replies
5/31tty: n_tty: use uint for space returned by tty_write_room()drivers/tty/n_tty.c+7 -60 replies
6/31tty: n_tty: simplify process_output()drivers/tty/n_tty.c+4 -100 replies
7/31tty: n_tty: clean up process_output_block()drivers/tty/n_tty.c+11 -160 replies
8/31tty: n_tty: drop n_tty_trace()drivers/tty/n_tty.c+0 -140 replies
9/31tty: n_tty: extract n_tty_continue_cookie() from n_tty_read()drivers/tty/n_tty.c+36 -300 replies
10/31tty: n_tty: extract n_tty_wait_for_input()drivers/tty/n_tty.c+31 -260 replies
11/31tty: n_tty: move more_to_be_read to the end of n_tty_read()drivers/tty/n_tty.c+14 -150 replies
12/31tty: tty_driver: move TTY macros to the topinclude/linux/tty_driver.h+78 -780 replies
13/31tty: tty_driver: convert "TTY Driver Flags" to an enumDocumentation/driver-api/tty/tty_driver.rst include/linux/tty_driver.h+25 -170 replies
14/31tty: tty_driver: document both {,__}tty_alloc_driver() properlyDocumentation/driver-api/tty/tty_driver.rst drivers/tty/tty_io.c include/linux/tty_driver.h+14 -40 replies
15/31tty: tty_driver: introduce TTY driver sub/types enumsinclude/linux/tty_driver.h+21 -210 replies
16/31tty: serdev: drop serdev_controller_ops::write_room()drivers/tty/serdev/core.c drivers/tty/serdev/serdev-ttyport.c include/linux/serdev.h+0 -260 replies
17/31tty: mmc: sdio: use bool for cts and remove parenthesesdrivers/mmc/core/sdio_uart.c+1 -11 reply
18/31tty: moxa: drop version dump to logsdrivers/tty/moxa.c+0 -50 replies
19/31tty: moxa: drop ISA supportdrivers/tty/Kconfig drivers/tty/moxa.c+6 -960 replies
20/31tty: moxa: carve out special ioctls and extra tty_portdrivers/tty/moxa.c+1 -1450 replies
21/31tty: srmcons: fix retval from srmcons_init()arch/alpha/kernel/srmcons.c+33 -290 replies
22/31tty: staging/greybus: pass tty_driver flags to tty_alloc_driver()drivers/staging/greybus/uart.c+2 -21 reply
23/31tty: sunsu: drop serial_{in,out}p()drivers/tty/serial/sunsu.c+77 -870 replies
24/31tty: sunsu: remove unused serial_icr_read()drivers/tty/serial/sunsu.c+0 -140 replies
25/31serial: remove redundant tty_port_link_device()drivers/tty/serial/serial_core.c+0 -10 replies
26/31serial: pass struct uart_state to uart_line_info()drivers/tty/serial/serial_core.c+2 -30 replies
27/31serial: 8250: use serial_port_in/out() helpersdrivers/tty/serial/8250/8250_dw.c drivers/tty/serial/8250/8250_fsl.c drivers/tty/serial/8250/8250_omap.c+13 -132 replies
28/31serial: 8250_rsa: simplify rsa8250_{request/release}_resource()drivers/tty/serial/8250/8250_rsa.c+9 -120 replies
29/31serial: 8250_port: do not use goto for UPQ_NO_TXEN_TEST code flowdrivers/tty/serial/8250/8250_port.c+16 -180 replies
30/31serial: 8250_port: simplify serial8250_request_std_resource()drivers/tty/serial/8250/8250_port.c+10 -150 replies
31/31serial: switch change_irq and change_port to bool in uart_set_info()drivers/tty/serial/serial_core.c+2 -20 replies

Reviews trailers per patch

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

PatchJakub KicinskiMagnus LindholmJohan HovoldAndy ShevchenkoAlex Elder
1/31
2/31
3/31A-b
4/31
5/31
6/31
7/31
8/31
9/31
10/31
11/31
12/31
13/31
14/31
15/31
16/31
17/31
18/31
19/31
20/31
21/31T-b
22/31A-b R-b
23/31
24/31
25/31
26/31
27/31R-b
28/31
29/31
30/31
31/31

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/31] tty: cleanup no. 99

Hi,

this is (again) a series of cleanup in tty. I am trying to rework tty+serial to avoid limitations of devices (so called NR_UART or tty_alloc_driver()'s first parameter). And the below popped up while crawling through the code. So this is only a prep cleanup.

* many tty flags are now enums
* many functions were improved for readability
* quite a few unused or old code dropped

In particular, the runtime behaviour of the kernel before and after the changes is supposed to be bug to bug compatible (except moxa's ioctl and ISA evils dropped). That is, noone should notice.

[v2]
* use serial_port_in/out() helpers in 26/30 (and not use serial_in/out())
* the last patch is new

Jiri Slaby (SUSE) (31):
tty: convert "TTY Struct Flags" to an enum
tty: audit: do not use N_TTY_BUF_SIZE
tty: caif: do not use N_TTY_BUF_SIZE
tty: move N_TTY_BUF_SIZE to n_tty
tty: n_tty: use uint for space returned by tty_write_room()
tty: n_tty: simplify process_output()
tty: n_tty: clean up process_output_block()
tty: n_tty: drop n_tty_trace()
tty: n_tty: extract n_tty_continue_cookie() from n_tty_read()
tty: n_tty: extract n_tty_wait_for_input()
tty: n_tty: move more_to_be_read to the end of n_tty_read()
tty: tty_driver: move TTY macros to the top
tty: tty_driver: convert "TTY Driver Flags" to an enum
tty: tty_driver: document both {,__}tty_alloc_driver() properly
tty: tty_driver: introduce TTY driver sub/types enums
tty: serdev: drop serdev_controller_ops::write_room()
tty: mmc: sdio: use bool for cts and remove parentheses
tty: moxa: drop version dump to logs
tty: moxa: drop ISA support
tty: moxa: carve out special ioctls and extra tty_port
tty: srmcons: fix retval from srmcons_init()
tty: staging/greybus: pass tty_driver flags to tty_alloc_driver()
tty: sunsu: drop serial_{in,out}p()
tty: sunsu: remove unused serial_icr_read()
serial: remove redundant tty_port_link_device()
serial: pass struct uart_state to uart_line_info()
serial: 8250: use serial_port_in/out() helpers
serial: 8250_rsa: simplify rsa8250_{request/release}_resource()
serial: 8250_port: do not use goto for UPQ_NO_TXEN_TEST code flow
serial: 8250_port: simplify serial8250_request_std_resource()
serial: switch change_irq and change_port to bool in uart_set_info()

 Documentation/driver-api/tty/tty_driver.rst |   4 +-
 Documentation/driver-api/tty/tty_struct.rst |   2 +-
 arch/alpha/kernel/srmcons.c                 |  62 ++---
 drivers/mmc/core/sdio_uart.c                |   2 +-
 drivers/net/caif/caif_serial.c              |   2 +-
 drivers/staging/greybus/uart.c              |   4 +-
 drivers/tty/Kconfig                         |   2 +-
 drivers/tty/moxa.c                          | 251 +-------------------
 drivers/tty/n_tty.c                         | 212 ++++++++---------
 drivers/tty/serdev/core.c                   |  11 -
 drivers/tty/serdev/serdev-ttyport.c         |   9 -
 drivers/tty/serial/8250/8250_dw.c           |  16 +-
 drivers/tty/serial/8250/8250_fsl.c          |   8 +-
 drivers/tty/serial/8250/8250_omap.c         |   2 +-
 drivers/tty/serial/8250/8250_port.c         |  59 ++---
 drivers/tty/serial/8250/8250_rsa.c          |  21 +-
 drivers/tty/serial/serial_core.c            |  10 +-
 drivers/tty/serial/sunsu.c                  | 178 ++++++--------
 drivers/tty/tty_audit.c                     |  10 +-
 drivers/tty/tty_io.c                        |   8 +-
 include/linux/serdev.h                      |   6 -
 include/linux/tty.h                         |  53 +++--
 include/linux/tty_driver.h                  | 180 +++++++-------
 23 files changed, 412 insertions(+), 700 deletions(-)
Signature · 1 line
2.49.0