Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4318329pxv; Tue, 29 Jun 2021 04:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz87Ausg3pFzZB8UIwygip00qSuyuahd8+5BPfxmripUmqI/YoUT9hqPCqkfoVgtYbbj15o X-Received: by 2002:a17:906:9e05:: with SMTP id fp5mr21765805ejc.376.1624965618191; Tue, 29 Jun 2021 04:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624965618; cv=none; d=google.com; s=arc-20160816; b=gXKPxyXVix2kxCkByB3fZoX39BZNadv3kCGhaRPmYlkbXVUjqte3mCsDeKTdP+Cfmy KcTvb+APYwu/g5yCvpPDRVIW+FiF6KpFe8+V3aTPv68Q3n/EQ8Jme6zig3sbTGOwZDrc JRo4f3F/9PK3u2mdzlBEDSdJifvxKbd1wFRdvORkIfpK0U9i6BbFTXL3q4NFqvNBV5xX uOIgLCCHqU1GIUqRm65+Nf2qluSXOZ+BhYrEXDYGsJmSK1n3T201k8k4+PmePVT19rSp yKdfhgi8WHli3xuF3U1JdXqjzN9hB+fg7o5M+QZVNgt5KsnxRCEZHJd7Bm+4SB5FHBnq hY1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=xjV/iKi34jYFMReQkJHVyPn/3R5zf+ElzbUkU1MRvAQ=; b=rExK6MKuz5UGaSR5MnXPJoYPPNBPjgTWv38UbMr/4FPr1BmnDq39+HO1lHqk7UCBf0 XokqghgYAbyMqzyfzrmO9RFg+X3RYdiQmyeDDjOi3ZCYabfdnq/ZJkZBd+Z9VkgAKHmv VM73IqK1UZpv8ej58Zv7F4uqcNbXVNFVc2KaGSEi6u8fy/zYej4FELSBBMF6u4pSDebj XLwIjX63Kfk46xEuaM68CwXI3Ud7+p7NkTcp1wwVY/fnxtqKUYiGHoEuXAwkEem8Fiua j39G+gx0+QW4hE6GYpDrQ86wOzPVdAkdFkMK4PPCgFlEWascpWRBnIyl15INpOOU9ZKn 1hGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dKJFli8N; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si17678562ejn.713.2021.06.29.04.19.54; Tue, 29 Jun 2021 04:20:18 -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; dkim=pass header.i=@linaro.org header.s=google header.b=dKJFli8N; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233260AbhF2LTR (ORCPT + 99 others); Tue, 29 Jun 2021 07:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233335AbhF2LTC (ORCPT ); Tue, 29 Jun 2021 07:19:02 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47DACC061766 for ; Tue, 29 Jun 2021 04:16:33 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id g24-20020a17090ace98b029017225d0c013so403935pju.1 for ; Tue, 29 Jun 2021 04:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xjV/iKi34jYFMReQkJHVyPn/3R5zf+ElzbUkU1MRvAQ=; b=dKJFli8NYw/mQKH3Kw4Xh/mZ1c75VxNBWzg2+Q31Y4qkdcoAI/y405XkWNU8+TlS4f zX3H5e5QzRv47ovxV/fZR0a2D8g1VDKvN37yUK9i7Lk3xCny/f5logx3MyHjdJO00P8e u3Js/sBNx6gl08KPRHp6lzQsxUCb60h+4Ep1hlpzJTACykLZhadUKt+onNeH3ossfpx7 INL/XMqjN/KfiLrBaVcUGAIokQh9Bxz4z2/9ESGXFmx7KQFDFzuT64+WsCU/yR+1eyVR RQ8nO2Gz2D4W46BWxZDzoNW6tUm6i4eTxkp4IyfBwzJ6ZvZlzrNZUifZ/BmrVwPdXlq/ gAgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xjV/iKi34jYFMReQkJHVyPn/3R5zf+ElzbUkU1MRvAQ=; b=DaX8xIW9n8TwCsWc5IfNQja+J1cD02RU2SQF+c+riQ2JAWdjorGyZz8qCCZBL9mP8n UTuicAI3heTOSzNt0vFSg9VSRw45t9arc0CPeA/je6XdT29O6sCH5EdwV9NdXegDNj9N HerOkYpv+yX3wlBDSwvzF1G+dy9WnI9fGrEdtq867fxY5XUt6aoSrBGcZsEDxJkHZjHt VrV8MEdU9Z5pVoy25URqtKtU0pw89hQPhcs6fn5rJOexp5n5E+e2Sp8KA3jn72Xo1yYp RWTtZzdis0EQ/P0jDHnKlHTTSR8QyTv2JXJpjiZEO6ug39xL3GKOxDRejn42qm+9ut8z ki/w== X-Gm-Message-State: AOAM533YE+bXmshxIOjqUA5icv5TljV/m0o8TIZI5/v/HjcIysWF6lJL 7xYGkW8Lh+RICnvi/SX3mwqexw== X-Received: by 2002:a17:903:18e:b029:127:a5ba:7243 with SMTP id z14-20020a170903018eb0290127a5ba7243mr22916869plg.4.1624965392695; Tue, 29 Jun 2021 04:16:32 -0700 (PDT) Received: from localhost ([136.185.134.182]) by smtp.gmail.com with ESMTPSA id u11sm17854532pjf.46.2021.06.29.04.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 04:16:32 -0700 (PDT) Date: Tue, 29 Jun 2021 16:46:30 +0530 From: Viresh Kumar To: Wolfram Sang , Jie Deng , linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, andriy.shevchenko@linux.intel.com, conghui.chen@intel.com, arnd@arndb.de, kblaiech@mellanox.com, jarkko.nikula@linux.intel.com, Sergey.Semin@baikalelectronics.ru, rppt@kernel.org, loic.poulain@linaro.org, tali.perry1@gmail.com, u.kleine-koenig@pengutronix.de, bjorn.andersson@linaro.org, yu1.wang@intel.com, shuo.a.liu@intel.com, stefanha@redhat.com, pbonzini@redhat.com Subject: Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver Message-ID: <20210629111630.badum3mtumcujbyk@vireshk-i7> References: <226a8d5663b7bb6f5d06ede7701eedb18d1bafa1.1616493817.git.jie.deng@intel.com> <20210629101627.kwc2rszborc3kvjs@vireshk-i7> <20210629103014.nlk3mpetydc4mi6l@vireshk-i7> <20210629105649.nt63mxtiy6u7de3g@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-06-21, 13:11, Wolfram Sang wrote: > > > The case when ``length of \field{write_buf}''=0, and at the same time, > > ``length of \field{read_buf}''=0 is called not-a-read-write request > > and result for such a request is I2C device specific. > > Obviously, I don't know much about the specs and their wording. Still I > wonder if we can't call it a zero length transfer? Maybe that. > This is allowed by > the I2C standard and SMBus has even a proper name for it (SMBUS_QUICK). > From my point of view, I would not say it is device specific because > devices are expected to ACK such a message. Actually we should skip the last line from my diff, i.e. completely drop "and result for such a request is I2C device specific". The device (host in virtio spec terminology) still needs to return success/failure as it does for other requests. Nothing special here. -- viresh