Re: [PATCH v19 2/4] i2c: Add support for Intel LJCA USB I2C driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v19 2/4] i2c: Add support for Intel LJCA USB I2C driver
- From: Wolfram Sang <wsa@xxxxxxxxxx>
- Date: Fri, 29 Sep 2023 22:10:48 +0200
- Cc: "gregkh@xxxxxxxxxxxxxxxxxxx" <gregkh@xxxxxxxxxxxxxxxxxxx>, "arnd@xxxxxxxx" <arnd@xxxxxxxx>, "mka@xxxxxxxxxxxx" <mka@xxxxxxxxxxxx>, "oneukum@xxxxxxxx" <oneukum@xxxxxxxx>, "lee@xxxxxxxxxx" <lee@xxxxxxxxxx>, "kfting@xxxxxxxxxxx" <kfting@xxxxxxxxxxx>, "broonie@xxxxxxxxxx" <broonie@xxxxxxxxxx>, "linus.walleij@xxxxxxxxxx" <linus.walleij@xxxxxxxxxx>, "hdegoede@xxxxxxxxxx" <hdegoede@xxxxxxxxxx>, "maz@xxxxxxxxxx" <maz@xxxxxxxxxx>, "brgl@xxxxxxxx" <brgl@xxxxxxxx>, "linux-usb@xxxxxxxxxxxxxxx" <linux-usb@xxxxxxxxxxxxxxx>, "linux-i2c@xxxxxxxxxxxxxxx" <linux-i2c@xxxxxxxxxxxxxxx>, "linux-spi@xxxxxxxxxxxxxxx" <linux-spi@xxxxxxxxxxxxxxx>, "linux-gpio@xxxxxxxxxxxxxxx" <linux-gpio@xxxxxxxxxxxxxxx>, "andriy.shevchenko@xxxxxxxxxxxxxxx" <andriy.shevchenko@xxxxxxxxxxxxxxx>, "heikki.krogerus@xxxxxxxxxxxxxxx" <heikki.krogerus@xxxxxxxxxxxxxxx>, "andi.shyti@xxxxxxxxxxxxxxx" <andi.shyti@xxxxxxxxxxxxxxx>, "sakari.ailus@xxxxxxxxxxxxxxx" <sakari.ailus@xxxxxxxxxxxxxxx>, "bartosz.golaszewski@xxxxxxxxxx" <bartosz.golaszewski@xxxxxxxxxx>, "Pandruvada, Srinivas" <srinivas.pandruvada@xxxxxxxxx>, "Wang, Zhifeng" <zhifeng.wang@xxxxxxxxx>
- In-reply-to: <DM6PR11MB4316B740D57D4E9EFE4D5B608DC0A@DM6PR11MB4316.namprd11.prod.outlook.com>
- Mail-followup-to: Wolfram Sang <wsa@xxxxxxxxxx>, "Wu, Wentong" <wentong.wu@xxxxxxxxx>, "gregkh@xxxxxxxxxxxxxxxxxxx" <gregkh@xxxxxxxxxxxxxxxxxxx>, "arnd@xxxxxxxx" <arnd@xxxxxxxx>, "mka@xxxxxxxxxxxx" <mka@xxxxxxxxxxxx>, "oneukum@xxxxxxxx" <oneukum@xxxxxxxx>, "lee@xxxxxxxxxx" <lee@xxxxxxxxxx>, "kfting@xxxxxxxxxxx" <kfting@xxxxxxxxxxx>, "broonie@xxxxxxxxxx" <broonie@xxxxxxxxxx>, "linus.walleij@xxxxxxxxxx" <linus.walleij@xxxxxxxxxx>, "hdegoede@xxxxxxxxxx" <hdegoede@xxxxxxxxxx>, "maz@xxxxxxxxxx" <maz@xxxxxxxxxx>, "brgl@xxxxxxxx" <brgl@xxxxxxxx>, "linux-usb@xxxxxxxxxxxxxxx" <linux-usb@xxxxxxxxxxxxxxx>, "linux-i2c@xxxxxxxxxxxxxxx" <linux-i2c@xxxxxxxxxxxxxxx>, "linux-spi@xxxxxxxxxxxxxxx" <linux-spi@xxxxxxxxxxxxxxx>, "linux-gpio@xxxxxxxxxxxxxxx" <linux-gpio@xxxxxxxxxxxxxxx>, "andriy.shevchenko@xxxxxxxxxxxxxxx" <andriy.shevchenko@xxxxxxxxxxxxxxx>, "heikki.krogerus@xxxxxxxxxxxxxxx" <heikki.krogerus@xxxxxxxxxxxxxxx>, "andi.shyti@xxxxxxxxxxxxxxx" <andi.shyti@xxxxxxxxxxxxxxx>, "sakari.ailus@xxxxxxxxxxxxxxx" <sakari.ailus@xxxxxxxxxxxxxxx>, "bartosz.golaszewski@xxxxxxxxxx" <bartosz.golaszewski@xxxxxxxxxx>, "Pandruvada, Srinivas" <srinivas.pandruvada@xxxxxxxxx>, "Wang, Zhifeng" <zhifeng.wang@xxxxxxxxx>
- References: <1694890416-14409-1-git-send-email-wentong.wu@intel.com> <1694890416-14409-3-git-send-email-wentong.wu@intel.com> <ZRaCEI5EZuSx5/Lx@ninjato> <DM6PR11MB4316B740D57D4E9EFE4D5B608DC0A@DM6PR11MB4316.namprd11.prod.outlook.com>
> And with i2cdetect -q busnum, I see error on driver side which enable
> I2C_FUNC_SMBUS_EMUL and not disable I2C_FUNC_SMBUS_QUICK, I think
> it means we don't support zero-length transfer if I understand correctly.
At least, not currently. Sometimes the driver just needs updates,
sometimes the HW simply cannot do it. If it is a software issue, we can
fix it incrementally.
> static u32 ljca_i2c_func(struct i2c_adapter *adap)
> {
> return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
> }
Yes.
> static const struct i2c_adapter_quirks ljca_i2c_quirks = {
> .flags = I2C_AQ_NO_ZERO_LEN,
> .max_read_len = LJCA_I2C_MAX_XFER_SIZE,
> .max_write_len = LJCA_I2C_MAX_XFER_SIZE,
> };
Yes.
I think the I2C driver is good then.
Attachment:
signature.asc
Description: PGP signature
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|