LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jie Deng <jie.deng@intel.com>
To: Wolfram Sang <wsa@kernel.org>,
linux-i2c@vger.kernel.org,
virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, mst@redhat.com, arnd@arndb.de,
jasowang@redhat.com, andriy.shevchenko@linux.intel.com,
yu1.wang@intel.com, shuo.a.liu@intel.com, conghui.chen@intel.com,
viresh.kumar@linaro.org, stefanha@redhat.com,
gregkh@linuxfoundation.org
Subject: Re: [PATCH v14] i2c: virtio: add a virtio i2c frontend driver
Date: Fri, 23 Jul 2021 10:21:53 +0800 [thread overview]
Message-ID: <4c257470-9b07-d5dc-a5ba-770b0229663e@intel.com> (raw)
In-Reply-To: <YPmQQelKfa4J7zdA@ninjato>
On 2021/7/22 23:35, Wolfram Sang wrote:
> Hi,
>
> so only minor stuff left from my side.
>
>> @@ -21,6 +21,17 @@ config I2C_ALI1535
>> This driver can also be built as a module. If so, the module
>> will be called i2c-ali1535.
>>
>> +config I2C_VIRTIO
>> + tristate "Virtio I2C Adapter"
>> + select VIRTIO
>> + help
>> + If you say yes to this option, support will be included for the virtio
>> + I2C adapter driver. The hardware can be emulated by any device model
>> + software according to the virtio protocol.
>> +
>> + This driver can also be built as a module. If so, the module
>> + will be called i2c-virtio.
>> +
>> config I2C_ALI1563
>> tristate "ALI 1563"
>> depends on PCI
> The sorting is not good. I think your entry should go to the bottom of
> the Kconfig file.
OK. I will move it to the bottom.
>> diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile
>> index 69e9963..9843756 100644
>> --- a/drivers/i2c/busses/Makefile
>> +++ b/drivers/i2c/busses/Makefile
>> @@ -147,4 +147,7 @@ obj-$(CONFIG_I2C_XGENE_SLIMPRO) += i2c-xgene-slimpro.o
>> obj-$(CONFIG_SCx200_ACB) += scx200_acb.o
>> obj-$(CONFIG_I2C_FSI) += i2c-fsi.o
>>
>> +# VIRTIO I2C host controller driver
> This comment can go, I'd say.
I will remove this line. Thank you.
>
>> +obj-$(CONFIG_I2C_VIRTIO) += i2c-virtio.o
>> +
>> ccflags-$(CONFIG_I2C_DEBUG_BUS) := -DDEBUG
>
>> + /*
>> + * We don't support 0 length messages and so masked out
>> + * I2C_FUNC_SMBUS_QUICK in virtio_i2c_func().
>> + */
>> + if (!msgs[i].len)
>> + break;
> I recommend using struct i2c_adapter_quirks with I2C_AQ_NO_ZERO_LEN. But
> let's wait first if zero length are possible or not.
I think we can add an i2c_adapter_quirks for this moment. Support for
I2C_FUNC_SMBUS_QUICK
can be added incrementally if needed.
>
> Also, checkpatch:
>
> WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
>
> So, is one of you interested in maintaining this driver?
>
> All the best,
>
> Wolfram
I will play this role. I see Viresh also spend a lot of time on this driver.
So I'd like to ask Viresh, are you willing to be a co-maintainer ?
Regards,
Jie
next prev parent reply other threads:[~2021-07-23 2:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 2:25 Jie Deng
2021-07-09 3:44 ` Viresh Kumar
2021-07-13 15:34 ` Michael S. Tsirkin
2021-07-13 15:38 ` Michael S. Tsirkin
2021-07-14 2:10 ` Viresh Kumar
2021-07-14 8:33 ` Jie Deng
2021-07-22 5:14 ` Viresh Kumar
2021-07-22 6:06 ` Greg KH
2021-07-22 6:11 ` Viresh Kumar
2021-07-22 15:35 ` Wolfram Sang
2021-07-23 2:21 ` Jie Deng [this message]
2021-07-23 2:25 ` Viresh Kumar
2021-09-04 20:01 ` Michael S. Tsirkin
2021-09-06 4:43 ` Viresh Kumar
2021-09-06 6:40 ` Wolfram Sang
2021-09-08 2:07 ` Jie Deng
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=4c257470-9b07-d5dc-a5ba-770b0229663e@intel.com \
--to=jie.deng@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=conghui.chen@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=jasowang@redhat.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=shuo.a.liu@intel.com \
--cc=stefanha@redhat.com \
--cc=viresh.kumar@linaro.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=wsa@kernel.org \
--cc=yu1.wang@intel.com \
--subject='Re: [PATCH v14] i2c: virtio: add a virtio i2c frontend driver' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).