| From: |
| Wentong Wu <wentong.wu-AT-intel.com> |
| To: |
| gregkh-AT-linuxfoundation.org, arnd-AT-arndb.de, mka-AT-chromium.org, oneukum-AT-suse.com, lee-AT-kernel.org, wsa-AT-kernel.org, kfting-AT-nuvoton.com, broonie-AT-kernel.org, linus.walleij-AT-linaro.org, maz-AT-kernel.org, brgl-AT-bgdev.pl, linux-usb-AT-vger.kernel.org, linux-i2c-AT-vger.kernel.org, linux-spi-AT-vger.kernel.org, linux-gpio-AT-vger.kernel.org, andriy.shevchenko-AT-linux.intel.com, heikki.krogerus-AT-linux.intel.com, andi.shyti-AT-linux.intel.com, sakari.ailus-AT-linux.intel.com, bartosz.golaszewski-AT-linaro.org, srinivas.pandruvada-AT-intel.com |
| Subject: |
| [PATCH v12 0/4] Add Intel LJCA device driver |
| Date: |
| Fri, 01 Sep 2023 13:36:13 +0800 |
| Message-ID: |
| <1693546577-17824-1-git-send-email-wentong.wu@intel.com> |
| Cc: |
| zhifeng.wang-AT-intel.com, Wentong Wu <wentong.wu-AT-intel.com> |
| Archive-link: |
| Article |
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.
---
v12:
- switch dev_err to dev_dbg for i2c-ljca driver
- avoid err printing because of calling usb_kill_urb when
attempts to resubmit the rx urb
v11:
- switch dev_err to dev_dbg for i2c-ljca driver
- remove message length check because of defined quirk structure
- remove I2C_FUNC_SMBUS_EMUL support
v10:
- remove ljca_i2c_format_slave_addr
- remove memset before write write w_packet
- make ljca_i2c_stop void and print err message in case failure
- use dev_err_probe in ljca_i2c_probe function
v9:
- overhaul usb-ljca driver to make it more structured and easy understand
- fix memory leak issue for usb-ljca driver
- add spinlock to protect tx_buf and ex_buf
- change exported APIs for usb-ljca driver
- unify prefix for structures and functions for i2c-ljca driver
- unify prefix for structures and functions for spi-ljca driver
- unify prefix for structures and functions for gpio-ljca driver
- update gpio-ljca, i2c-ljca and spi-ljca drivers according to usb-ljca's changes
Wentong Wu (4):
usb: Add support for Intel LJCA device
i2c: Add support for Intel LJCA USB I2C driver
spi: Add support for Intel LJCA USB SPI driver
gpio: update Intel LJCA USB GPIO driver
drivers/gpio/Kconfig | 4 +-
drivers/gpio/gpio-ljca.c | 246 +++++++------
drivers/i2c/busses/Kconfig | 11 +
drivers/i2c/busses/Makefile | 1 +
drivers/i2c/busses/i2c-ljca.c | 326 +++++++++++++++++
drivers/spi/Kconfig | 11 +
drivers/spi/Makefile | 1 +
drivers/spi/spi-ljca.c | 297 +++++++++++++++
drivers/usb/misc/Kconfig | 14 +
drivers/usb/misc/Makefile | 1 +
drivers/usb/misc/usb-ljca.c | 817 ++++++++++++++++++++++++++++++++++++++++++
include/linux/usb/ljca.h | 113 ++++++
12 files changed, 1737 insertions(+), 105 deletions(-)
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
--
2.7.4