From: Hans de Goede <hdegoede@redhat.com>
To: "Wu, Wentong" <wentong.wu@intel.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"arnd@arndb.de" <arnd@arndb.de>,
"mka@chromium.org" <mka@chromium.org>,
"oneukum@suse.com" <oneukum@suse.com>,
"lee@kernel.org" <lee@kernel.org>,
"wsa@kernel.org" <wsa@kernel.org>,
"kfting@nuvoton.com" <kfting@nuvoton.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"linus.walleij@linaro.org" <linus.walleij@linaro.org>,
"maz@kernel.org" <maz@kernel.org>,
"brgl@bgdev.pl" <brgl@bgdev.pl>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
"linux-spi@vger.kernel.org" <linux-spi@vger.kernel.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"andriy.shevchenko@linux.intel.com"
<andriy.shevchenko@linux.intel.com>,
"heikki.krogerus@linux.intel.com"
<heikki.krogerus@linux.intel.com>,
"andi.shyti@linux.intel.com" <andi.shyti@linux.intel.com>,
"sakari.ailus@linux.intel.com" <sakari.ailus@linux.intel.com>,
"bartosz.golaszewski@linaro.org" <bartosz.golaszewski@linaro.org>,
"Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>
Cc: "Wang, Zhifeng" <zhifeng.wang@intel.com>
Subject: Re: [PATCH v12 0/4] Add Intel LJCA device driver
Date: Sat, 2 Sep 2023 21:00:59 +0200 [thread overview]
Message-ID: <185f2f8a-e2ba-e198-79a2-6c01081f035e@redhat.com> (raw)
In-Reply-To: <DM6PR11MB4316D9C6026B6672872939DE8DEBA@DM6PR11MB4316.namprd11.prod.outlook.com>
Hi,
On 9/2/23 19:15, Wu, Wentong wrote:
> Hi Hans,
>
> Thanks
>
>> From: Hans de Goede <hdegoede@redhat.com>
>>
>> Hi,
>>
>> On 9/1/23 07:36, Wentong Wu wrote:
>>> 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.
>>
>> Thanks. I've been testing this on a Lenovo X1 ThinkPad Yoga gen 8 with an
>> ov2740 sensor connected to the LJCA device.
>
> Thanks, and I don’t have this laptop, could you please share your DSDT
> so that I can understand it more?
I have send you an acpidump by private email.
> And I will update this patch set after understand your DSDT and have the
> patches tested on my setup.
Ok. Note that the out of tree ivsc driver already does uid matching
in the i2c-driver to fixup the wrong ACPI companion being assigned
by the MFD driver, see:
https://github.com/intel/ivsc-driver/blob/main/drivers/i2c/busses/i2c-ljca.c#L346
For upstream it seemed cleaner to me to directly pick
the correct ACPI companion at aux-device instantiation,
something which was not possible with the MFD approach
but is possible with the auxilary bus approach.
And the other change which I'm proposing has already
been merged into the out of tree version of the LJCA
i2c driver:
https://github.com/intel/ivsc-driver/commit/70d95269169cf9e452580b0c15471829df4a6d59
Regards,
Hans
>> I needed 2 small(ish) fixes to make everything work there.
>> I have attached the 2 fixes here.
>>
>> With these 2 fixes this series is:
>>
>> Tested-by: Hans de Goede <hdegoede@redhat.com>
>
> Thanks a lot
>
> BR,
> Wentong
>>
>> Regards,
>>
>> Hans
>>
>>
>>
>>
>>
>>> ---
>>> 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
>>>
next prev parent reply other threads:[~2023-09-02 19:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-01 5:36 [PATCH v12 0/4] Add Intel LJCA device driver Wentong Wu
2023-09-01 5:36 ` [PATCH v12 1/4] usb: Add support for Intel LJCA device Wentong Wu
2023-09-01 15:04 ` Andi Shyti
2023-09-02 17:17 ` Wu, Wentong
2023-09-01 5:36 ` [PATCH v12 2/4] i2c: Add support for Intel LJCA USB I2C driver Wentong Wu
2023-09-02 18:19 ` Andi Shyti
2023-09-13 8:44 ` Wolfram Sang
2023-09-01 5:36 ` [PATCH v12 3/4] spi: Add support for Intel LJCA USB SPI driver Wentong Wu
2023-09-01 15:12 ` Andi Shyti
2023-09-02 17:17 ` Wu, Wentong
2023-09-01 5:36 ` [PATCH v12 4/4] gpio: update Intel LJCA USB GPIO driver Wentong Wu
2023-09-01 15:18 ` Andi Shyti
2023-09-02 17:29 ` Wu, Wentong
2023-09-02 18:14 ` Andi Shyti
2023-09-02 14:58 ` [PATCH v12 0/4] Add Intel LJCA device driver Hans de Goede
2023-09-02 17:15 ` Wu, Wentong
2023-09-02 19:00 ` Hans de Goede [this message]
2023-09-03 14:38 ` Wu, Wentong
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=185f2f8a-e2ba-e198-79a2-6c01081f035e@redhat.com \
--to=hdegoede@redhat.com \
--cc=andi.shyti@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=bartosz.golaszewski@linaro.org \
--cc=brgl@bgdev.pl \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=kfting@nuvoton.com \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=maz@kernel.org \
--cc=mka@chromium.org \
--cc=oneukum@suse.com \
--cc=sakari.ailus@linux.intel.com \
--cc=srinivas.pandruvada@intel.com \
--cc=wentong.wu@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox