All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wentong Wu <wentong.wu@intel.com>
To: gregkh@linuxfoundation.org, oneukum@suse.com, wsa@kernel.org,
	andi.shyti@linux.intel.com, broonie@kernel.org
Cc: bartosz.golaszewski@linaro.org, linus.walleij@linaro.org,
	hdegoede@redhat.com, linux-usb@vger.kernel.org,
	linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org,
	sakari.ailus@linux.intel.com, zhifeng.wang@intel.com,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	Wentong Wu <wentong.wu@intel.com>
Subject: [PATCH v20 0/4] Add Intel LJCA device driver
Date: Mon,  9 Oct 2023 14:33:21 +0800	[thread overview]
Message-ID: <1696833205-16716-1-git-send-email-wentong.wu@intel.com> (raw)

Add driver for Intel La Jolla Cove Adapter (LJCA) device. This
IO-expander adds additional functions to the host system with
host USB interface, such as GPIO, I2C and SPI. This patch set
adds four drivers to support this device: a USB device driver,
a GPIO chip driver, a I2C controller driver and a SPI controller
driver.

---
v20:
 - add __counted_by attributes for all of [] arrays
 - use proper kernel doc for ljca_adapter structure
 - re-structure ljca_recv function to make it more clear
 - remove all of scoped_guard
 - check return value of usb_autopm_get_interface()
 - re-structure ljca_enumerate_clients() to handle error correctly
 - add comment for 'uid = "0";' in ljca_match_device_ids()
 - change the parameters' type of ljca_send() to u8

v17 - v19:
 - rebase patch set on top of Linus' master branch (57d88e8a5974644039fbc47806bac7bb12025636)
 - change valid_pins type to __le32 and access valid_pins with get_unaligned_le32
 - remove COMPILE_TEST for USB_LJCA Kconfig

v16:
 - drop all void * and use real types in the exported apis and internal ljca_send()
 - remove #ifdef in usb-ljca.c file
 - add documentation in ljca.h for the public structures
 - add error message in ljca_handle_cmd_ack() if error happens and remove blank line
 - use the functionality in cleanup.h for spinlock to make function much simpler
 - change the type of ex_buf in struct ljca_adapter to u8 *

v14 - v15:
 - enhance disconnect() of usb-ljca driver
 - change memchr to strchr in ljca_match_device_ids() of usb-ljca driver
 - fix build error: implicit declaration of function 'acpi_dev_clear_dependencies'

v13:
 - make ljca-usb more robust with the help of Hans de Goede
 - call acpi_dev_clear_dependencies() to mark _DEP ACPI dependencies on the I2C controller as satisfied
 - avoid err printing because of calling usb_kill_urb when attempts to resubmit the rx urb

v10 - v12:
 - 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
 - remove ljca_i2c_format_slave_addr
 - remove memset before write write w_packet for i2c driver
 - 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 | 343 ++++++++++++++++
 drivers/spi/Kconfig           |  11 +
 drivers/spi/Makefile          |   1 +
 drivers/spi/spi-ljca.c        | 297 ++++++++++++++
 drivers/usb/misc/Kconfig      |  13 +
 drivers/usb/misc/Makefile     |   1 +
 drivers/usb/misc/usb-ljca.c   | 902 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/usb/ljca.h      | 145 +++++++
 12 files changed, 1870 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


             reply	other threads:[~2023-10-09  6:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-09  6:33 Wentong Wu [this message]
2023-10-09  6:33 ` [PATCH v20 1/4] usb: Add support for Intel LJCA device Wentong Wu
2023-10-09 10:22   ` Oliver Neukum
2023-10-11 10:21   ` Andy Shevchenko
2023-10-11 10:37     ` Hans de Goede
2023-10-11 10:43       ` Andy Shevchenko
2023-10-11 12:50       ` Wu, Wentong
2023-10-12 11:14         ` Hans de Goede
2023-10-13 20:05           ` Shevchenko, Andriy
2023-10-14 10:58             ` Hans de Goede
2023-10-16  5:52               ` Wu, Wentong
2023-10-16  7:35                 ` Hans de Goede
2023-10-16  7:38                 ` Shevchenko, Andriy
2023-10-16 15:05                   ` Wu, Wentong
2023-10-16 15:19                     ` gregkh
2023-10-16 15:44                       ` Wu, Wentong
2023-10-16 16:05                         ` Shevchenko, Andriy
2023-10-16 17:20                           ` Hans de Goede
2023-10-17  0:46                             ` Wu, Wentong
2023-10-09  6:33 ` [PATCH v20 2/4] i2c: Add support for Intel LJCA USB I2C driver Wentong Wu
2023-10-10 19:25   ` Wolfram Sang
2023-10-09  6:33 ` [PATCH v20 3/4] spi: Add support for Intel LJCA USB SPI driver Wentong Wu
2023-10-09 12:50   ` Mark Brown
2023-10-09  6:33 ` [PATCH v20 4/4] gpio: update Intel LJCA USB GPIO driver Wentong Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1696833205-16716-1-git-send-email-wentong.wu@intel.com \
    --to=wentong.wu@intel.com \
    --cc=andi.shyti@linux.intel.com \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=broonie@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hdegoede@redhat.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=wsa@kernel.org \
    --cc=zhifeng.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.