Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4305115pxv; Tue, 29 Jun 2021 04:02:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPzxR0F+TK6H6WrXAY9wTSXrnXrykoCB+wTd5XJEqui9pjNSGD2RUhO0UNbbg1p7j3MsfN X-Received: by 2002:a05:6402:158c:: with SMTP id c12mr38735953edv.335.1624964524197; Tue, 29 Jun 2021 04:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624964524; cv=none; d=google.com; s=arc-20160816; b=g/9sSXZQrQkuwRUKLMLES60m/7O6QAA+GwzqMVqzkTbuFANEvp0HVRS+S4QNt1Ug6J wHc9btE4HcZUDI1jMBY+ls7kNSh3mpwL+aVQqkZ1n1AVRqMhxpjlkESa2SsK3BCPDGhm UPQpFTWI8DWtYsFAL+hrvUAl7LT02Dr/59AboPBAUjLaAbzoy36YzzwEsMSXBWL8Ci7K ysLcXJVmZ3YCWmsl5N8k/nJzY9yymJsO0myzvHLiLkZQs0ntRQKxRmONgWIhzMT/cfPO oYYetLU2nTUlqypew2oQ8FQ+2BiDU4m3FAeDXM4bXRj2gqnVtiP125aPM5T7yemLDCuk nc/A== 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=Jc3NxCk+KDZnIQDnHNRavHi5mkTsU8gdZSOVUuYmb/Q=; b=BndlJONX3ysmVGTXGsO3U2RgaWqFC1zefBjwaDGEu2UyB6mfqjPmuPlvCEh8Ta9G2Z cmDwzZCKNq3k04GFHehX4Ur1VyViTF1P93qhMsA4gRVxKeuzeugAtt6bnfqyTUFbYXIc vOsEK9Nc6cpTtxU0PADQxtOxj9beYUSoCtJIBs4gKVLpUsM80HNOh8IlBaA5A8qdpWe0 P8yQKaiyXFoZscvAyRVLWHgSPGIzJkH9g5cn6VTWMxx6Zx57wgSjfLj46Zj4xEfS2LJ+ v3HX9iJOnOdvpmtkHDYi+rNCoARiBkUel2pIjIKxOsfZRDaJTUiR3dc3cD2offLMgRuy zxaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QS9szzKZ; 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 kl25si16893191ejc.370.2021.06.29.04.01.32; Tue, 29 Jun 2021 04:02:04 -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=QS9szzKZ; 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 S233348AbhF2K7U (ORCPT + 99 others); Tue, 29 Jun 2021 06:59:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbhF2K7T (ORCPT ); Tue, 29 Jun 2021 06:59:19 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC63C061760 for ; Tue, 29 Jun 2021 03:56:52 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id 21so16870786pfp.3 for ; Tue, 29 Jun 2021 03:56:52 -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=Jc3NxCk+KDZnIQDnHNRavHi5mkTsU8gdZSOVUuYmb/Q=; b=QS9szzKZkwbuUl6cKd5ztj/xB9uMz9A1jTb+bhp/iKdt6UXXCDtfbkgpYSl9Ld+viw 6wm5vnieXa0uuthxGAsd2dKH5l1eiA5nEb/Q01RIm+4sRZOun/GGl0IoKejxx6PU/Cxi KwW+NE7q5y9MFmWzZwJ/lOLR6FezFPiwFKp36Ggo57oNbkpfTdkz/yl0ZVaty0BvAd0Q tkint4nL99vAdnuiwBtQONS1EyfJelM8ZYkTwrROgl/HDIykl+FUEmL3aXcw5DRa/mvE VkMMefHA41nC0ZWHpWASXk0mnM1R+U1S1zX3LjB0QOklwhgqe/MbW7AabHCf9G6KZz9/ kW2Q== 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=Jc3NxCk+KDZnIQDnHNRavHi5mkTsU8gdZSOVUuYmb/Q=; b=lJ5VxFyquS2QMWZeqrrNRnKFuASKvmNicQtx3Jos0NfxfIwNTIro/2btHwMB7yYJ9v OLOu0mYMkrsJQj9C47dCeQlxV1nmkCIkpADpusZb8GT6HEqH9A/sHW5si168YYrIoqbb bkZ5EWA9d8OooUhJxRUXNWT2KPzeuW3QXhpcR5tHCml7SaHv33UepLY8xrHiW+8E3J86 PlItxWAgzTMGhX8cLujwz29BfvtrjFmeag7CszaeUeRfJLbKFqWtLlnMbEmfELMqI6QI 7JBuaTHNA/hbo+Rm/WAS+Zi+6R7935ufpLE1LwjdT0mhRARmBukvIOP5Y+n2u0YQ29zD 8c+w== X-Gm-Message-State: AOAM530GU9YUlmq4vhF1DSKDStEaPdZi2tYAjerP2bS7V/aQYFJaMGqR pjOFFqmsWpHZaJ/uO9hbuS1YQA== X-Received: by 2002:a63:5616:: with SMTP id k22mr27766655pgb.41.1624964212463; Tue, 29 Jun 2021 03:56:52 -0700 (PDT) Received: from localhost ([136.185.134.182]) by smtp.gmail.com with ESMTPSA id w123sm17955912pff.186.2021.06.29.03.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 03:56:51 -0700 (PDT) Date: Tue, 29 Jun 2021 16:26:49 +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: <20210629105649.nt63mxtiy6u7de3g@vireshk-i7> References: <226a8d5663b7bb6f5d06ede7701eedb18d1bafa1.1616493817.git.jie.deng@intel.com> <20210629101627.kwc2rszborc3kvjs@vireshk-i7> <20210629103014.nlk3mpetydc4mi6l@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, 12:43, Wolfram Sang wrote: > > > From the spec: > > > > The case when ``length of \field{write_buf}''=0, and at the same time, > > ``length of \field{read_buf}''=0 doesn't make any sense. > > > > I mentioned this in my first reply and to my understanding I did not get > > a reply that this has changed meanwhile. > > > > Also, this code as mentioned before: > > > + if (!msgs[i].len) > > + break; > > I hope this can extended in the future to allow zero-length messages. If > this is impossible we need to set an adapter quirk instead. Ahh, yeah I saw these messages but I wasn't able to relate them to the I2C_FUNC_SMBUS_QUICK thing. My bad. Looked at Spec, Linux driver and my backends, I don't there is anything that breaks if we allow this. So the best thing (looking ahead) is if Jie sends a patch for spec to be modified like this. 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. -- viresh