Skip to content

serial: Create kserial_rs485 to get rid of padding

Ilpo Järvinen linux-arm-kernel linux-doc linux-serial lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 10 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Address style comments (from Andy)
- Convert most of the serial_rs485 & kserial_rs485 inline comments to kernel doc

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4serial: Rename vars in uart_get_rs485_config()drivers/tty/serial/serial_core.c+4 -42 replies
2/4serial: add helpers to copy serial_rs485 from/to userspacedrivers/tty/serial/serial_core.c+27 -140 replies
3/4serial: Convert serial_rs485 to kernel docinclude/uapi/linux/serial.h+40 -210 replies
4/4serial: Add kserial_rs485 to avoid wasted space due to .paddingDocumentation/driver-api/serial/serial-rs485.rst drivers/tty/serial/8250/8250.h drivers/tty/serial/8250/8250_dwlib.c +18 more+118 -698 replies

Reviews trailers per patch

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

PatchAndy Shevchenko
1/4R-b
2/4R-b
3/4
4/4

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

Read the v2 thread

Cover letter [PATCH v2 0/4] serial: Create kserial_rs485 to get rid of padding

serial_rs485 contains padding at the end to make extending it easier. Create kserial_rs485 counterpart w/o padding for kernel use leaving serial_rs485 only to be used for uapi.

v2:
- Address style comments (from Andy)
- Convert most of the serial_rs485 & kserial_rs485 inline comments to kernel doc

Ilpo Järvinen (4):
serial: Rename vars in uart_get_rs485_config()
serial: add helpers to copy serial_rs485 from/to userspace
serial: Convert serial_rs485 to kernel doc
serial: Add kserial_rs485 to avoid wasted space due to .padding

 .../driver-api/serial/serial-rs485.rst        |  2 +-
 drivers/tty/serial/8250/8250.h                |  4 +-
 drivers/tty/serial/8250/8250_dwlib.c          |  6 +-
 drivers/tty/serial/8250/8250_exar.c           | 12 +--
 drivers/tty/serial/8250/8250_fintek.c         |  6 +-
 drivers/tty/serial/8250/8250_lpc18xx.c        |  4 +-
 drivers/tty/serial/8250/8250_pci.c            |  4 +-
 drivers/tty/serial/8250/8250_port.c           |  4 +-
 drivers/tty/serial/amba-pl011.c               |  4 +-
 drivers/tty/serial/ar933x_uart.c              |  8 +-
 drivers/tty/serial/atmel_serial.c             |  4 +-
 drivers/tty/serial/fsl_lpuart.c               |  6 +-
 drivers/tty/serial/imx.c                      |  6 +-
 drivers/tty/serial/max310x.c                  |  4 +-
 drivers/tty/serial/mcf.c                      |  4 +-
 drivers/tty/serial/omap-serial.c              |  6 +-
 drivers/tty/serial/sc16is7xx.c                |  6 +-
 drivers/tty/serial/serial_core.c              | 87 +++++++++++++------
 drivers/tty/serial/stm32-usart.c              | 12 +--
 include/linux/serial_core.h                   | 29 ++++++-
 include/uapi/linux/serial.h                   | 63 +++++++++-----
 21 files changed, 181 insertions(+), 100 deletions(-)
Signature · 1 line
2.30.2