Skip to content

EXAR UART support for IOT2040 device

Jan Kiszka cip-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25serial: exar: split out the exar code from 8250_pcidrivers/tty/serial/8250/8250_exar.c drivers/tty/serial/8250/Kconfig drivers/tty/serial/8250/Makefile+401 -00 replies
2/25serial: 8250_pci: Use symbolic constants for EXAR's MPIO registersdrivers/tty/serial/8250/8250_pci.c+34 -210 replies
3/25serial: 8250_pci: remove exar codedrivers/tty/serial/8250/8250_pci.c drivers/tty/serial/8250/Kconfig+4 -3330 replies
4/25serial: exar: Fix mapping of port I/O resourcesdrivers/tty/serial/8250/8250_exar.c+3 -00 replies
5/25serial: exar: Fix initialization of EXAR registers for ports > 0drivers/tty/serial/8250/8250_exar.c+9 -130 replies
6/25serial: exar: Fix feature control register constantsinclude/uapi/linux/serial_reg.h+2 -20 replies
7/25serial: exar: Move Commtech adapters to 8250_exar as welldrivers/tty/serial/8250/8250_exar.c drivers/tty/serial/8250/8250_pci.c+79 -1430 replies
8/25serial: pci: Remove unused pci_boards entriesdrivers/tty/serial/8250/8250_pci.c+0 -220 replies
9/25serial: 8250_EXAR: fix duplicate Kconfig text and add missing help textdrivers/tty/serial/8250/Kconfig+6 -20 replies
10/25serial: exar: Preconfigure xr17v35x MPIOs as outputdrivers/tty/serial/8250/8250_exar.c+2 -20 replies
11/25serial: exar: Leave MPIOs as output for Commtech adaptersdrivers/tty/serial/8250/8250_exar.c+11 -40 replies
12/25serial: uapi: Add support for bus terminationinclude/uapi/linux/serial.h+3 -00 replies
13/25gpio: add a data pointer to gpio_chipdrivers/gpio/gpiolib.c include/linux/gpio/driver.h+19 -50 replies
14/25gpio: Add devm_ apis for gpiochip_add_data and gpiochip_removedrivers/gpio/gpiolib.c include/linux/gpio/driver.h+78 -00 replies
15/25gpio: exar: add gpio for exar cardsdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/gpio-exar.c+208 -00 replies
16/25gpio: exar: Set proper output level in exar_direction_outputdrivers/gpio/gpio-exar.c+12 -110 replies
17/25gpio-exar/8250-exar: Fix passing in of parent PCI devicedrivers/gpio/gpio-exar.c drivers/tty/serial/8250/8250_exar.c+3 -20 replies
18/25gpio: exar: Allocate resources on behalf of the platform devicedrivers/gpio/gpio-exar.c+2 -20 replies
19/25gpio: exar: Fix reading of directions and valuesdrivers/gpio/gpio-exar.c+4 -40 replies
20/25gpio-exar/8250-exar: Do not even instantiate a GPIO device for Commtech cardsdrivers/gpio/gpio-exar.c drivers/tty/serial/8250/8250_exar.c+3 -40 replies
21/25gpio: exar: Fix iomap requestdrivers/gpio/gpio-exar.c+3 -70 replies
22/25gpio-exar/8250-exar: Rearrange gpiochip parenthooddrivers/gpio/gpio-exar.c drivers/tty/serial/8250/8250_exar.c+3 -10 replies
23/25serial: exar: Factor out platform hooksdrivers/tty/serial/8250/8250_exar.c+27 -50 replies
24/25gpio-exar/8250-exar: Make set of exported GPIOs configurabledrivers/gpio/gpio-exar.c drivers/tty/serial/8250/8250_exar.c include/linux/platform_data/gpio-exar.h+57 -260 replies
25/25serial: exar: Add support for IOT2040 devicedrivers/tty/serial/8250/8250_exar.c+127 -10 replies

Reviews trailers per patch

17 of 25 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoSudip MukherjeeLinus WalleijGreg Kroah-Hartman
1/25R-b
2/25
3/25R-b
4/25R-b
5/25R-b
6/25R-b
7/25R-b
8/25
9/25R-b A-b
10/25
11/25R-b R-b
12/25
13/25
14/25
15/25
16/25
17/25R-b A-b A-b
18/25R-b A-b
19/25R-b A-b
20/25R-b A-b A-b
21/25R-b A-b
22/25R-b A-b
23/25R-b A-b
24/25R-b
25/25R-b A-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 v1 thread

Cover letter [cip-dev] [PATCH 00/25] EXAR UART support for IOT2040 device

Second chunk: This imports a number of preparatory patches in order to fully exploit the PCI-attached dual-port EXAR with RS232/422/485 on the IOT2040.

To avoid having to backport also API-changing patches for platform devices, I've slightly modified two patches to use a communication pattern that does not require these changes.

Jan

Axel Lin (1):
gpio: exar: Set proper output level in exar_direction_output

Jan Kiszka (18):
serial: 8250_pci: Use symbolic constants for EXAR's MPIO registers
serial: exar: Fix mapping of port I/O resources
serial: exar: Fix initialization of EXAR registers for ports > 0
serial: exar: Fix feature control register constants
serial: exar: Move Commtech adapters to 8250_exar as well
serial: pci: Remove unused pci_boards entries
serial: exar: Preconfigure xr17v35x MPIOs as output
serial: exar: Leave MPIOs as output for Commtech adapters
serial: uapi: Add support for bus termination gpio-exar/8250-exar: Fix passing in of parent PCI device
gpio: exar: Allocate resources on behalf of the platform device
gpio: exar: Fix reading of directions and values gpio-exar/8250-exar: Do not even instantiate a GPIO device for
Commtech cards
gpio: exar: Fix iomap request
gpio-exar/8250-exar: Rearrange gpiochip parenthood
serial: exar: Factor out platform hooks gpio-exar/8250-exar: Make set of exported GPIOs configurable
serial: exar: Add support for IOT2040 device

Laxman Dewangan (1):
gpio: Add devm_ apis for gpiochip_add_data and gpiochip_remove

Linus Walleij (1):
gpio: add a data pointer to gpio_chip

Paul Gortmaker (1):
serial: 8250_EXAR: fix duplicate Kconfig text and add missing help
text

Sudip Mukherjee (3):
serial: exar: split out the exar code from 8250_pci
serial: 8250_pci: remove exar code
gpio: exar: add gpio for exar cards

 drivers/gpio/Kconfig                    |   7 +
 drivers/gpio/Makefile                   |   1 +
 drivers/gpio/gpio-exar.c                | 196 ++++++++++
 drivers/gpio/gpiolib.c                  |  84 ++++-
 drivers/tty/serial/8250/8250_exar.c     | 636 ++++++++++++++++++++++++++++++++
 drivers/tty/serial/8250/8250_pci.c      | 484 +-----------------------
 drivers/tty/serial/8250/Kconfig         |   9 +
 drivers/tty/serial/8250/Makefile        |   1 +
 include/linux/gpio/driver.h             |  18 +-
 include/linux/platform_data/gpio-exar.h |  21 ++
 include/uapi/linux/serial.h             |   3 +
 include/uapi/linux/serial_reg.h         |   4 +-
 12 files changed, 977 insertions(+), 487 deletions(-)
 create mode 100644 drivers/gpio/gpio-exar.c
 create mode 100644 drivers/tty/serial/8250/8250_exar.c
 create mode 100644 include/linux/platform_data/gpio-exar.h
Signature · 1 line
2.12.3