Skip to content

ACPI/UART: Add ACPI 5.0 enumeration support for UART

Lv Zheng linux-acpi linux-serial 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 11 repliesIn review
  2. v4 RFC posting 2/20 of 3 patches 0 repliesSuperseded
  3. v4 RFC posting 1/23 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 RFC4 patches3 repliesSuperseded
v24 patches0 repliesSuperseded
v1 RFC3 patches19 repliesSuperseded

v1 from the cover letter

1. Add "uart" bus subsystem.
2. Add physical UART target device and description (uart_device/uart_board_info).
3. Add logical UART host adapter (klist).
4. Add UART target device attributes (tty_dev/tty_attrs/modem_lines).
5. Create tty_device<->uart_device links (host_node/target_node).
v2.
1. Change UART layer related stuff to non-UART related.
2. Modify the order of the function parameters.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2TTY: Add TTY slave enumeration supportdrivers/tty/Kconfig drivers/tty/Makefile drivers/tty/serial/Kconfig +5 more+511 -411 replies
2/2ACPI / UART: Add ACPI enumeration support for UARTdrivers/acpi/Kconfig drivers/acpi/Makefile drivers/acpi/acpi_uart.c +2 more+231 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchFengguang Wu
1/2T-b
2/2

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

Read the v5 thread

Cover letter [PATCH v5 0/2] ACPI/UART: Add ACPI 5.0 enumeration support for UART

ACPI 5.0 specification introduces enumeration support for SPB buses. This patch set adds the UART serial bus enumeration support to Linux using such mechanism.
This patch set is based on the tty tree/tty-next branch.

History:
v1:
1. Add "uart" bus subsystem.
2. Add physical UART target device and description (uart_device/uart_board_info).
3. Add logical UART host adapter (klist).
4. Add UART target device attributes (tty_dev/tty_attrs/modem_lines).
5. Create tty_device<->uart_device links (host_node/target_node).
v2.
1. Change UART layer related stuff to non-UART related.
2. Modify the order of the function parameters.
v3:
1. Add comments for the uart_board_info and the uart_device.
2. Add platform_data/archdata support.
3. Add ACPI binding and test the binding (in seperate patch).
4. Add SERIAL_BUS kconfig item.
v4
1. Convert "uart" bus into "tty_enum" bus.
2. Convert uart_target_device into tty_slave_device.
3. Convert uart_board_info into tty_board_info.
3. Convert kconfig item SERIAL_BUS into TTY_ENUM.
4. Add automatic device unregister support for slave devices. The new tty_port_unregister_device is for this purpose.
5. Add HID/CID list support.
6. Convert TTY slave device name into ACPI node name.
v5
1. Add missing static reported by recent kernel build test.

Lv Zheng (2):
TTY: Add TTY slave enumeration support ACPI / UART: Add ACPI enumeration support for UART

 drivers/acpi/Kconfig             |    6 +
 drivers/acpi/Makefile            |    1 +
 drivers/acpi/acpi_uart.c         |  215 +++++++++++++++++++++++
 drivers/tty/Kconfig              |    3 +
 drivers/tty/Makefile             |    1 +
 drivers/tty/serial/Kconfig       |    1 +
 drivers/tty/serial/serial_core.c |    2 +-
 drivers/tty/tty_enum.c           |  357 ++++++++++++++++++++++++++++++++++++++
 drivers/tty/tty_port.c           |   42 ++++-
 include/linux/mod_devicetable.h  |    6 +
 include/linux/tty.h              |  112 ++++++++++++
 11 files changed, 742 insertions(+), 4 deletions(-)
 create mode 100644 drivers/acpi/acpi_uart.c
 create mode 100644 drivers/tty/tty_enum.c
Signature · 1 line
1.7.10