Skip to content

serial: Add a helper to parse device properties and more

Andy Shevchenko linux-arm-kernel linux-aspeed linux-mips linux-serial linux-tegra lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 0 repliesNew
  2. v214 patches 8 repliesSuperseded
  3. v114 patches 19 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14serial: core: Move struct uart_port::quirks closer to possible valuesinclude/linux/serial_core.h+4 -20 replies
2/14serial: core: Add UPIO_UNKNOWN constant for unknown port typeinclude/linux/serial_core.h+1 -00 replies
3/14serial: port: Introduce a common helper to read propertiesdrivers/tty/serial/serial_port.c include/linux/serial_core.h+147 -00 replies
4/14serial: 8250_aspeed_vuart: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_aspeed_vuart.c+15 -350 replies
5/14serial: 8250_bcm2835aux: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_bcm2835aux.c+42 -500 replies
6/14serial: 8250_bcm7271: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_bcm7271.c+19 -370 replies
7/14serial: 8250_dw: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_dw.c+27 -400 replies
8/14serial: 8250_ingenic: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_ingenic.c+7 -130 replies
9/14serial: 8250_lpc18xx: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_lpc18xx.c+8 -120 replies
10/14serial: 8250_of: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_of.c+22 -830 replies
11/14serial: 8250_omap: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_omap.c+10 -190 replies
12/14serial: 8250_pxa: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_pxa.c+9 -130 replies
13/14serial: 8250_tegra: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_tegra.c+9 -170 replies
14/14serial: 8250_uniphier: Switch to use uart_read_port_properties()drivers/tty/serial/8250/8250_uniphier.c+4 -130 replies

Reviews trailers per patch

7 of 14 patches have a Reviewed-by or Acked-by.

PatchAndi ShytiAndrew JefferyFlorian FainelliKunihiko Hayashi
1/14R-b
2/14
3/14
4/14R-b R-b
5/14R-b T-b
6/14R-b T-b
7/14R-b
8/14
9/14
10/14R-b R-b T-b
11/14
12/14
13/14
14/14R-b T-b

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

Read the v3 thread

Cover letter [PATCH v3 00/14] serial: Add a helper to parse device properties and more

I have noticed that many drivers are using the subset of the common properties and IRQ retrieval code. With the moving it to one place we have got a common parser one for many.

Tested on Intel Apollo Lake with DesingWare 8250 UARTs (clang compiled) and in QEMU for Aspeed configuration (gcc compiled). The rest has been compile tested on x86_64 with clang.

In v3:
- split the helper to two and export as GPL (Greg)
- added tags (Florian, Kunihiko)

In v2:
- fixed typo (Hugo)
- renamed UPIO_UNSET --> UPIO_UNKNOWN (Florian)
- fixed 8250_of not working (Andrew)
- dropped unused variable in 8250_bcm7271 (LKP)
- added tag to 8250_aspeed_vuart (Andrew)

Andy Shevchenko (14):
serial: core: Move struct uart_port::quirks closer to possible values
serial: core: Add UPIO_UNKNOWN constant for unknown port type
serial: port: Introduce a common helper to read properties
serial: 8250_aspeed_vuart: Switch to use uart_read_port_properties()
serial: 8250_bcm2835aux: Switch to use uart_read_port_properties()
serial: 8250_bcm7271: Switch to use uart_read_port_properties()
serial: 8250_dw: Switch to use uart_read_port_properties()
serial: 8250_ingenic: Switch to use uart_read_port_properties()
serial: 8250_lpc18xx: Switch to use uart_read_port_properties()
serial: 8250_of: Switch to use uart_read_port_properties()
serial: 8250_omap: Switch to use uart_read_port_properties()
serial: 8250_pxa: Switch to use uart_read_port_properties()
serial: 8250_tegra: Switch to use uart_read_port_properties()
serial: 8250_uniphier: Switch to use uart_read_port_properties()

 drivers/tty/serial/8250/8250_aspeed_vuart.c |  50 ++-----
 drivers/tty/serial/8250/8250_bcm2835aux.c   |  92 ++++++-------
 drivers/tty/serial/8250/8250_bcm7271.c      |  56 +++-----
 drivers/tty/serial/8250/8250_dw.c           |  67 ++++-----
 drivers/tty/serial/8250/8250_ingenic.c      |  20 +--
 drivers/tty/serial/8250/8250_lpc18xx.c      |  20 ++-
 drivers/tty/serial/8250/8250_of.c           | 105 +++-----------
 drivers/tty/serial/8250/8250_omap.c         |  29 ++--
 drivers/tty/serial/8250/8250_pxa.c          |  22 ++-
 drivers/tty/serial/8250/8250_tegra.c        |  26 ++--
 drivers/tty/serial/8250/8250_uniphier.c     |  17 +--
 drivers/tty/serial/serial_port.c            | 145 ++++++++++++++++++++
 include/linux/serial_core.h                 |  11 +-
 13 files changed, 325 insertions(+), 335 deletions(-)
Signature · 1 line
2.43.0.rc1.1.gbec44491f096