Skip to content

Add Intel LJCA device driver

Ye Xiang linux-gpio linux-i2c linux-spi linux-usb lkml 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 15 repliesIn review
  2. v76 patches 11 repliesSuperseded
  3. v66 patches 6 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches13 repliesSuperseded
v45 patches34 repliesSuperseded
v35 patches2 repliesSuperseded
v25 patches3 repliesSuperseded
v15 patches8 repliesSuperseded

Changes in v8 from the cover letter

- ljca: use READ_ONCE to make the value of ibuf consistent.
- gpio: inplement get_direction callback.
- gpio: move kconfig item into USB GPIO expanders menu.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6usb: Add support for Intel LJCA devicedrivers/usb/misc/Kconfig drivers/usb/misc/Makefile drivers/usb/misc/usb-ljca.c +1 more+1042 -03 replies
2/6usb: ljca: Add transport interfaces for sub-module driversdrivers/usb/misc/usb-ljca.c include/linux/usb/ljca.h+143 -01 reply
3/6Documentation: Add ABI doc for attributes of LJCA deviceDocumentation/ABI/testing/sysfs-bus-usb-devices-ljca+36 -00 replies
4/6gpio: Add support for Intel LJCA USB GPIO driverdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/gpio-ljca.c+492 -04 replies
5/6i2c: Add support for Intel LJCA USB I2C driverdrivers/i2c/busses/Kconfig drivers/i2c/busses/Makefile drivers/i2c/busses/i2c-ljca.c+362 -02 replies
6/6spi: Add support for Intel LJCA USB SPI driverdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/spi-ljca.c+302 -03 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchLinus WalleijBartosz Golaszewski
1/6
2/6
3/6
4/6R-b A-b
5/6
6/6

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

Read the v8 thread

Cover letter [PATCH v8 0/6] Add Intel LJCA device driver

Add driver for Intel La Jolla Cove Adapter (LJCA) device. This is a USB-GPIO, USB-I2C and USB-SPI device. We add 4 drivers to support this device: a USB driver, a GPIO chip driver, a I2C controller driver and a SPI controller driver.

---
v8:
- ljca: use READ_ONCE to make the value of ibuf consistent.
- gpio: inplement get_direction callback.
- gpio: move kconfig item into USB GPIO expanders menu.

v7:
- ljca: remove unused field udev in struct ljca_dev.
- ljca: rename ljca module name to usb-ljca.
- ljca: use CONFIG_ACPI to enclose acpi related code.
- ljca/gpio/i2c/spi: align MACRO defination.

v6:
- ljca: split LJCA USB driver into two commits: USB part and API part.
- gpio/i2c/spi: use auxiliary bus for sub-module device enumeration instead of MFD.
- move document patch for LJCA sysfs entry to the 3th patch of this patch series.
- ljca: fix potential race condition when wait response timeout.
- ljca: use devm_kzalloc to malloc ljca device struct.

v5:
- move ljca.h from drivers/include/mfd to drivers/include/usb.
- ljca: fix a potential memory leak issue.
- add a blank line before return to adust to kernel code style.
- ljca: sysfs: split "cmd" to "ljca_dfu" and "ljca_trace_level".

v4:
- move ljca.c from drivers/mfd to drivers/usb/misc folder.
- fix index warning in sysfs-bus-devices-ljca.

v3:
- spi: make ljca_spi_transfer inline and fix an endian issue.

v2:
- ljca: remove reset command.
- gpio/spi/i2c: add default MFD_LJCA in Kconfig.
- gpio: add "select GPIOLIB_IRQCHIP" in Kconfig.

Ye Xiang (6):
usb: Add support for Intel LJCA device
usb: ljca: Add transport interfaces for sub-module drivers
Documentation: Add ABI doc for attributes of LJCA device
gpio: Add support for Intel LJCA USB GPIO driver
i2c: Add support for Intel LJCA USB I2C driver
spi: Add support for Intel LJCA USB SPI driver

 .../ABI/testing/sysfs-bus-usb-devices-ljca    |   36 +
 drivers/gpio/Kconfig                          |   12 +
 drivers/gpio/Makefile                         |    1 +
 drivers/gpio/gpio-ljca.c                      |  479 ++++++++
 drivers/i2c/busses/Kconfig                    |   11 +
 drivers/i2c/busses/Makefile                   |    1 +
 drivers/i2c/busses/i2c-ljca.c                 |  350 ++++++
 drivers/spi/Kconfig                           |   11 +
 drivers/spi/Makefile                          |    1 +
 drivers/spi/spi-ljca.c                        |  290 +++++
 drivers/usb/misc/Kconfig                      |   14 +
 drivers/usb/misc/Makefile                     |    1 +
 drivers/usb/misc/usb-ljca.c                   | 1068 +++++++++++++++++
 include/linux/usb/ljca.h                      |  102 ++
 14 files changed, 2377 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-usb-devices-ljca
 create mode 100644 drivers/gpio/gpio-ljca.c
 create mode 100644 drivers/i2c/busses/i2c-ljca.c
 create mode 100644 drivers/spi/spi-ljca.c
 create mode 100644 drivers/usb/misc/usb-ljca.c
 create mode 100644 include/linux/usb/ljca.h
Signature · 1 line
2.34.1