Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1339932pxb; Tue, 26 Oct 2021 07:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN2hmYdKgtf4GsYOieVPMQk1EX6nj7/nwPpaJkZL6oWEGItuaBoO+CUzjqG1tYCKLfj0/q X-Received: by 2002:a17:902:6847:b0:141:56df:ad7e with SMTP id f7-20020a170902684700b0014156dfad7emr2938443pln.82.1635257916771; Tue, 26 Oct 2021 07:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635257916; cv=none; d=google.com; s=arc-20160816; b=WgnrFViwxjkvM0WWoEtKcuNVhp2CD7cAmTpjZSYVlFKY3iQxGujDSF1MsQ1IhpxcIx Eq6XFKLRJYrV2KS2wbL9ThCx4wP42LVQOZ9KUbt/xBTqeW46D9ADtPJo/WB80h4+zA+K 3klOAijiZFzucF+KtCPvt9XNkjyFRV1UUENlwKLK19ZcF9x0S9N8jjiEi6QSmTxfvnae WShb9812RMVt2Qd8ARf5bus7kKqhToS1e5upowDG4nKFh4YLpCS60ytjLgseoDs0F+YB Dy4NWe4sPJaELcles2XW/IUXJj+TPWi5pRm5WT7oREz6jgjEMv5c3nRSO+TGqH/B3MmO SDng== 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:cc:to:from:date :dkim-signature; bh=Uay9CbMwX+2O0ogFCTZO+22+pOrDr/HSyVNYJuWbPJM=; b=TttU+UsFVmahqMsJl7K3cx5gYViXmEpCt0e3cbnw6Wo0NKv32Bex8PeKXFOr3HW9QU gnEiWdXdIdKIjHVqD9wuYj9+Wsv1y0cm7Vsp3sdaZlADhZdzFvpxOPibrZM28ApXatZG UFHNF9eH37mrsTh9HuHv7G1ZQy1d8n8GhHueu1zjjCsgb2hxHjo4drxlVrjtVn6YdJ+a crJs/lOa8txnWs4iVrhA6VRD0ymjQ9i2od7mSDjXkep8HNJkAq8rHQCIuYCnEmnMWnuo dxC+XQuuw7tkJ0w5GANOgplYBXhbPIvfm/rPQ3SRmuuQJs355gQxxSRovmQVdZAnFytd STvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wTbsTpMW; 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 h189si5220693pge.620.2021.10.26.07.18.22; Tue, 26 Oct 2021 07:18:36 -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=wTbsTpMW; 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 S233797AbhJZLRB (ORCPT + 99 others); Tue, 26 Oct 2021 07:17:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbhJZLQx (ORCPT ); Tue, 26 Oct 2021 07:16:53 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D30C061767 for ; Tue, 26 Oct 2021 04:14:28 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id v1-20020a17090a088100b001a21156830bso1930342pjc.1 for ; Tue, 26 Oct 2021 04:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Uay9CbMwX+2O0ogFCTZO+22+pOrDr/HSyVNYJuWbPJM=; b=wTbsTpMWtz2u0QXyxWwJhRBj7ddnChMovMZItHWImTK/f9mO8NhRrA6Pz3op87sJii NClyz1RI88YScuKoBzVDWgy6fZrG5jvqqkeIaQUuln6qqSZj0X2ELVAyXnaO7bUPq9aC 1YWZhMoWIY8+D/T/EO3OL7O/aydr466G/KA+z9lc3JB5hjo60vbh1Kvz4YrpzBm1wbP/ 3PZHlQGrL72ToRU479+DVQ6lHY2WBLgHLjhTG7GA/caVd49KmwED3wKe/XanL5FFT5nl 3cmLWRcOlOTW076t2DcqmEkSAIkPGguFYWC+6Ild/vxmGPKSUFBlesMVC6fbpQPpZbtS P6Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Uay9CbMwX+2O0ogFCTZO+22+pOrDr/HSyVNYJuWbPJM=; b=DxV08Crl3qV3yRdLLWGPhSvTWVqBj5SbOVSfGCj++Do+Kj8sYkc+97OeHHfIQlP69D cAXusmomJE8hHqBdvGdnLAHQRMt3YsPK8f/xsdFhm9FPpdIqi1PLgF6AIOtQBYrziR9t 5wz52luFxYD05FS+K8FRYcXZ0PxlBQEZkC/kUOjFAyWAS+d3vEgoHTsB+XSg787QHcdq tPA9LllbH0zYeVN7vkJQU3n007zS3LPAj+fsaDkHeIiUjW6bogSvX7gejhLy3EVcAQpn 0JhNVCVzh5r5mbRQNo1QBcoVjTeblev82VTyCbzdT64JdqrpKAnRwBqOLJFq4J7MHp+w eNxQ== X-Gm-Message-State: AOAM533lPLO7kq9ej9tH8etUn47CLsWROwS+EIGyYQCQLX3rQetUY4WK RrrKDqjJ1j9+G+ISvN8Guu1EsA== X-Received: by 2002:a17:90b:38c6:: with SMTP id nn6mr12930310pjb.72.1635246868236; Tue, 26 Oct 2021 04:14:28 -0700 (PDT) Received: from localhost ([106.201.113.61]) by smtp.gmail.com with ESMTPSA id r8sm19409595pgp.30.2021.10.26.04.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 04:14:27 -0700 (PDT) Date: Tue, 26 Oct 2021 16:44:25 +0530 From: Viresh Kumar To: Wolfram Sang , Jie Deng , "Michael S. Tsirkin" , Jason Wang Cc: Vincent Guittot , Arnd Bergmann , stratos-dev@op-lists.linaro.org, Alex =?utf-8?Q?Benn=C3=A9e?= , cohuck@redhat.com, Vincent Whitchurch , linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: virtio: Add support for zero-length requests Message-ID: <20211026111425.nigbol5stajopkrw@vireshk-i7> References: <7c58868cd26d2fc4bd82d0d8b0dfb55636380110.1634808714.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c58868cd26d2fc4bd82d0d8b0dfb55636380110.1634808714.git.viresh.kumar@linaro.org> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-10-21, 15:17, Viresh Kumar wrote: > The virtio specification received a new mandatory feature > (VIRTIO_I2C_F_ZERO_LENGTH_REQUEST) for zero length requests. Fail if the > feature isn't offered by the device. > > For each read-request, set the VIRTIO_I2C_FLAGS_M_RD flag, as required > by the VIRTIO_I2C_F_ZERO_LENGTH_REQUEST feature. > > This allows us to support zero length requests, like SMBUS Quick, where > the buffer need not be sent anymore. > > Signed-off-by: Viresh Kumar > --- > Hi Wolfram, > > Please do not apply this until the spec changes [1] are merged, sending it early > to get review done. I will ping you later once the spec is merged. > > [1] https://lists.oasis-open.org/archives/virtio-dev/202110/msg00109.html Michael, Can this be merged as well based on the current voting at the ballot ? https://www.oasis-open.org/committees/ballot.php?id=3659 Wolfram, I am asking as this patch should be considered as a fix, which needs to be applied to the 5.15 kernel itself if possible (now or via stable), as we are implementing a new mandatory feature, which will make the currently merged version of the driver unusable going forward (since this won't be backwards compatible). -- viresh