From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77500C11F66 for ; Tue, 29 Jun 2021 09:07:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6033D61DE0 for ; Tue, 29 Jun 2021 09:07:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232705AbhF2JJt (ORCPT ); Tue, 29 Jun 2021 05:09:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:36182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232671AbhF2JJs (ORCPT ); Tue, 29 Jun 2021 05:09:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D49C761DD6; Tue, 29 Jun 2021 09:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624957641; bh=v+XYSmN0yCDjibhehaFRbA46fo8oLE3YUszwBIdDUbA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MBfu8+ezTNoltkY+dhiqlUYf/3U9VlbCciSKbIVSchMh567SdiNqT9USI/0AFPsOf nin6zAb5qFbwJr9yFTlpeLKs0bghu4LAIbKBpuEfXJuTMmhlA6O3nEZWLEGmPeIwX0 JjKO4Jx1qXkGewzmE+ZCZFUb0wFTQ/dwGRCB6tw3fcNlrfxnthR3XITpeYQishkE65 lv+z3aPR9aSVorviAGyWLYEwxzGQjhvn8t5mMhV7hHIaeGcEdkzwTSXgP9Nnqy/qQb dV5qgksTlorqBawJDI1vWbaW7dZXWf7ec3fjdxOd3C9oGceNw44A4NMXql/H23KQiu 1QJntUy7k/+aw== Date: Tue, 29 Jun 2021 11:07:15 +0200 From: Wolfram Sang To: Viresh Kumar Cc: Arnd Bergmann , Jie Deng , Linux I2C , virtualization@lists.linux-foundation.org, Linux Kernel Mailing List , "Michael S. Tsirkin" , Jason Wang , Andy Shevchenko , conghui.chen@intel.com, kblaiech@mellanox.com, jarkko.nikula@linux.intel.com, Sergey Semin , Mike Rapoport , loic.poulain@linaro.org, Tali Perry , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Bjorn Andersson , yu1.wang@intel.com, shuo.a.liu@intel.com, Stefan Hajnoczi , Paolo Bonzini Subject: Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver Message-ID: Mail-Followup-To: Wolfram Sang , Viresh Kumar , Arnd Bergmann , Jie Deng , Linux I2C , virtualization@lists.linux-foundation.org, Linux Kernel Mailing List , "Michael S. Tsirkin" , Jason Wang , Andy Shevchenko , conghui.chen@intel.com, kblaiech@mellanox.com, jarkko.nikula@linux.intel.com, Sergey Semin , Mike Rapoport , loic.poulain@linaro.org, Tali Perry , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Bjorn Andersson , yu1.wang@intel.com, shuo.a.liu@intel.com, Stefan Hajnoczi , Paolo Bonzini References: <20210629041017.dsvzldikvsaade37@vireshk-i7> <20210629085213.7a7eqcgkmtk5y7nh@vireshk-i7> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Xlew4Opvjp4WjDav" Content-Disposition: inline In-Reply-To: <20210629085213.7a7eqcgkmtk5y7nh@vireshk-i7> Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org --Xlew4Opvjp4WjDav Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > struct i2c_rdwr_ioctl_data data; > data.nmsgs =3D count; > data.msgs =3D msgs; >=20 > return ioctl(adapter->fd, I2C_RDWR, &data); >=20 > So we will end up recreating the exact situation as when > virtio_i2c_xfer() is called. Perfect! I was hoping exactly for this. But with my limited experience of all the blocks involved, I decided to ask for this instead of digging into various sources. Looks good. --Xlew4Opvjp4WjDav Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmDa4r8ACgkQFA3kzBSg KbZc2g/9EicqwrDKiZCv3MQ/VV7liEhzflZ8+f8S9rVtA/qxqLHRA4pRxqC6AyQn tlj/8jomNuGdFYrqJ9sW/Wbt/5YAj1FrX5xCK5umNPfRvNvDsLz4lwSSKur/KCm7 Fp0S+aebL877JsQZ+5W/6hOm3Jk/+gksSCY1PPPrH9eKHsyPws9BVTfyPVogzhLY PsjENDnXCftjGLTKptAkegD07L/1b5Ep4PYjJ4ms1ISgXyH8RWrwzP+4t1gQ6i9S PONYs0XE/i/kJK811PM90WAlG0Jj1YeTMxMcTTBy1TWAr6t3dUGKEvNOu+/VlTZs f8uqa8VuQ8U4tm7AGLxk2OOuNBk+DeMggBobw0ZBp16VyGf4qqM5pOQO+XFOGjeG dboqhBGcxGaatkxMtqYBfwt9bH6SP4jqE/tFW2x2fLjFWE5SyAZj1iawRchSDPXi 2NMJaMgtzWS9u5iQYd1iVTtQ165M7lEKTD5iT/Z3ubXh2Rk3kCJl4ByynZnlOZrA NSLHz4Eqqbi9cWzDh34t/3dwjHbKVHmTqizgY2BGtaPoIlJsLY+qmZnLaFA97xDx t/KILTSFILbsKICINw2Yq9xhZd1Pm5ZTOiPQU/zkbWF6VO5wKKaF3jgCm1pO9Q5U l1XnENZg1CWslfJIHJySMS6u+C5xSL9QbsQJ+O7JsFXI1v6/q8Q= =Pe63 -----END PGP SIGNATURE----- --Xlew4Opvjp4WjDav--