Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1015692pxv; Thu, 22 Jul 2021 19:24:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWqaQ0wcMo/vAt5RZB8bYO3TjoJvufVUtMcjkGbq/sW7aWuDXfD6fzLpg9xKgo+EqsuBVt X-Received: by 2002:a05:6e02:c7:: with SMTP id r7mr1983462ilq.52.1627007062791; Thu, 22 Jul 2021 19:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627007062; cv=none; d=google.com; s=arc-20160816; b=IK6JOa+hFlNAECyTS3AtPIwoJ1pHI793ti7R3EFf+VzFXkiYF5haCn6JBGMtqV5gPZ yCNPLVRQ1+jh3JA8VOEbXeADisnR0KxA1wO6AguHzLCQ16MJEE3LMx9pM2wWfUCjmxN2 3Tp+va8fQI1eYOefekGECa+h/rPPlxFv2MsPo4Tu7IVKy2Lu3n2v74ycydYcJkFT0ZZS BmoaQejnlEb+fR+uPsVBfvn3PifnQ+gQdvWc7gHLQX5kT6NC0TDd8uN+9Q2hz6HnNaJs 46g93bf6MoyG6L8d8SArXaddFk+6uZfWmFLjvEO5N1j55HkisaQWVDLKYmMGJGXVhHlJ OoBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=Qe2MOQLcfZk04jv38SjteUPZRU825JbH0Jy57IZWdqI=; b=NvhRg/N2PAL95i9oqkO8EuuhAmwr0hGDikJnvedOpZYDhzAfY0ZyU8Jizu9N3D2hk7 87QPzlu9RER2JXhaz5W8vHd+jM5cjvJ5WN7tzW6oEAiydpoOAsg3YkKKDx0WZAf99VHj casWq6YRf67y+Fw+2csW40N+Ce8FIBreTtlGsV4/7fgw4oyXUwC97MVf0rESVZ/hbsxF haHVXpkki+zt2mHs1tUGD1P6FduZWAuLeg9tojBnJ6gNxHPkKmQm+8gdvh3rZ/nGr5kt 0l4mSDR49nHuL6WsyzoLlkYaxCHkcl3CyzaDv20RcIKR0818zYIq+F0SearL4P1UjGz+ FScQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si35514985jab.103.2021.07.22.19.24.11; Thu, 22 Jul 2021 19:24:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbhGWBl0 (ORCPT + 99 others); Thu, 22 Jul 2021 21:41:26 -0400 Received: from mga14.intel.com ([192.55.52.115]:9103 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233128AbhGWBl0 (ORCPT ); Thu, 22 Jul 2021 21:41:26 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="211510257" X-IronPort-AV: E=Sophos;i="5.84,262,1620716400"; d="scan'208";a="211510257" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 19:21:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,262,1620716400"; d="scan'208";a="502337077" Received: from dengjie-mobl1.ccr.corp.intel.com (HELO [10.239.154.58]) ([10.239.154.58]) by FMSMGA003.fm.intel.com with ESMTP; 22 Jul 2021 19:21:54 -0700 Subject: Re: [PATCH v14] i2c: virtio: add a virtio i2c frontend driver To: Wolfram Sang , 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 References: <984ebecaf697058eb73389ed14ead9dd6d38fb53.1625796246.git.jie.deng@intel.com> From: Jie Deng Message-ID: <4c257470-9b07-d5dc-a5ba-770b0229663e@intel.com> Date: Fri, 23 Jul 2021 10:21:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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