Skip to content

serial: add KEBA UART driver

Gerhard Engleder linux-serial 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 13 repliesIn review
  2. v32 patches 4 repliesSuperseded
  3. v22 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- fix spelling, exist -> exists (Lukas Wunner)
- remove duplicate include (Lukas Wunner)
- order includes alphabetically (Lukas Wunner)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2serial: Keep rs485 settings for devices without firmware nodedrivers/tty/serial/serial_core.c+8 -03 replies
2/2serial: 8250: add driver for KEBA UARTdrivers/tty/serial/8250/8250_keba.c drivers/tty/serial/8250/Kconfig drivers/tty/serial/8250/Makefile+294 -010 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel GierlingerLukas Wunner
1/2R-b
2/2T-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] serial: add KEBA UART driver

First the serial subsystem is prepared to keep rs485 settings from the driver if no firmware node exists. This enables drivers to configure a default rs485 mode, which is set by the serial subsystem.

Second the driver for the KEBA UART is added. This driver supports multiple rs485 modes and selects RS485 as default mode. This UART is found in KEBA PLC devices. The auxiliary devices for this driver are created by the cp500 driver.

v4:
- fix spelling, exist -> exists (Lukas Wunner)
- remove duplicate include (Lukas Wunner)
- order includes alphabetically (Lukas Wunner)

v3:
- add info to commit why device tree / ACPI is not possible (Lukas Wunner)
- separate if and comment for change in uart_get_rs485_mode() (Lukas Wunner)

v2:
- use BIT() for flag definition (Jiri Slaby)
- use enum for UART mode definition (Jiri Slaby)
- use BIT() for capability flag definition (Jiri Slaby)
- use GENMASK() for capability mask (Jiri Slaby)
- use unsigned int for serial line number (Jiri Slaby)
- use unsigned int for flags (Jiri Slaby)

Gerhard Engleder (2):
serial: Keep rs485 settings for devices without firmware node
serial: 8250: add driver for KEBA UART

 drivers/tty/serial/8250/8250_keba.c | 280 ++++++++++++++++++++++++++++
 drivers/tty/serial/8250/Kconfig     |  13 ++
 drivers/tty/serial/8250/Makefile    |   1 +
 drivers/tty/serial/serial_core.c    |   8 +
 4 files changed, 302 insertions(+)
 create mode 100644 drivers/tty/serial/8250/8250_keba.c
Signature · 1 line
2.39.5