Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp282634imm; Mon, 2 Jul 2018 11:25:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMh8aoEGeqD3grD0ZJvytMZc9QAQpD7exRKS7EnKgE6D1nqMe5ek6pPllh2GU9ZOQwY2+r X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr9722321plq.271.1530555933022; Mon, 02 Jul 2018 11:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530555932; cv=none; d=google.com; s=arc-20160816; b=a4tsylI8OsG5JguRklN6mP1uHu9WGtfOGmO2ngwytTjrmLGrkfV6cV+NOhA7UX+Hb/ scL5XWT5KEywGG1XtGwb/hujIWr0cbMPZHJh5zrG+rchMPeIL7uABXp8GQaSpzq0dyMx WNAufR3r9dDDnN2KVhsH02PKKNyanBMKbNl2FesIu9LE4Nd4kcRy8Wp7cpCi60wtn0Dw mXjURFFVDoD+mfpr+QezCef1DbljmUG8Fhx/QdnVkPCY0fJgcDWZNafuoJq4mwdJ5IhV DuNEbHe5e/fYgeNe84HiqDv+KC9zXEFDLSC1VTnivEsKP0PiyJXf9Idii+06NAdztdmb Gvnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=I0VxqdmxYOvBZZMZoJ3Jh3k2hUFfFYzgN7PLBvZsgDE=; b=XT/BdFz2uti6FUyY0q9ZvNcR8utvHwjusSBLGrhc78Miot2Svp2fDVzgBw1KfN2pbt Lc4vuGE8p6TYxO4Df7K1nBdUfunrNaUVe/ZY295VtoWrzwP7fWu4JQSpmHV3LoUacG+h TUey+f2wXHb8+sO/Fu/VX4eSOnJbq+inPNZ0vNJ7hg2fgaR0xvoy4k05fiGfv4bECx2Z DWjLYySwq9zUDfd6JpDpnHTBss7epBL3QhjqGmLveOQr2O0vjNarRrJICbY1lTh3eL2d EeeVfG258uCylJxRlUYBZhLra1cMUxUIoPav93ixHmxXtMH8OXxD0bhanrGJtzG6U5++ BKAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20-v6si14708452pgb.195.2018.07.02.11.25.18; Mon, 02 Jul 2018 11:25:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753273AbeGBSYh (ORCPT + 99 others); Mon, 2 Jul 2018 14:24:37 -0400 Received: from sauhun.de ([88.99.104.3]:43994 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbeGBSYg (ORCPT ); Mon, 2 Jul 2018 14:24:36 -0400 Received: from localhost (p54B33579.dip0.t-ipconnect.de [84.179.53.121]) by pokefinder.org (Postfix) with ESMTPSA id DF80D56A485; Mon, 2 Jul 2018 20:24:34 +0200 (CEST) Date: Mon, 2 Jul 2018 20:24:34 +0200 From: Wolfram Sang To: Eddie James Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, benh@kernel.crashing.org, joel@jms.id.au, mark.rutland@arm.com, gregkh@linuxfoundation.org, rdunlap@infradead.org, andy.shevchenko@gmail.com, peda@axentia.se Subject: Re: [PATCH v10 5/7] i2c: fsi: Add transfer implementation Message-ID: <20180702182434.5wxxszpgpf6wergl@ninjato> References: <1528918579-27602-1-git-send-email-eajames@linux.vnet.ibm.com> <1528918579-27602-6-git-send-email-eajames@linux.vnet.ibm.com> <20180626023823.i3fmdegn2sric5kx@ninjato> <6713efb9-c4c3-f648-a1e9-7918110091e4@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yhxnagpnshnqsemd" Content-Disposition: inline In-Reply-To: <6713efb9-c4c3-f648-a1e9-7918110091e4@linux.vnet.ibm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yhxnagpnshnqsemd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > + if (msg->flags & I2C_M_RD) > > > + cmd |=3D I2C_CMD_READ; > > Since you support MANGLING, I'd think you can easily support > > I2C_M_REV_DIR_ADDR here, too? >=20 > Hm, I don't really understand the purpose of that flag. From the docs: >=20 > This toggles the Rd/Wr flag. That is, if you want to do a write, but > =C2=A0=C2=A0=C2=A0 need to emit an Rd instead of a Wr, or vice versa, you= set this > =C2=A0=C2=A0=C2=A0 flag. For example: > S Addr Rd [A] Data [A] Data [A] ... [A] Data [A] P >=20 > I don't think our hardware supports this type of operation. I'd think something like this should do: if (msg->flags & I2C_M_REV_DIR_ADDR) cmd ^=3D I2C_CMD_READ; --yhxnagpnshnqsemd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAls6beIACgkQFA3kzBSg KbbaORAAswydmxmWNfNqtkPEkp+nF0CxGMkNxdsL0sGKq/fRpmUFApwZAu0f8eBm z3mezjFVsYO99lb4WU4dzSWZgOWx293ruYoFLjza1CE3Vf5HQTpRZCM0eWSWP3/T tmIIJwivXUbjEuhTQY4SJCAsNZyBMM6ehBotdvU5c9PDnhEqLoMUVJCX/aPIuJLr AgDamRyUH2crRMx7kaP9fazU4UAGfOlljslFai9zf7+ojgc9YknXTy9tDhUi0EeW XeRg6yiFygf6obS9d0E3VI3PiFckbqhM9Sq80YeHPNGAq7uQeW98lBRfy74ln+jh SOWcP1sDz8quX0Hm0Hh5sSKW3GFqviovPbh+wVbKQDik71/i3vS98gcQgOEhYae4 6kUSFfk756f0qfWlzYNIUhABYaEgjOjzpkGu8RIbc2IxD9IAz4CwQAuKKcyuLqMt QKIx8/g4IOHZlYTYL4VGZrcQ7hEkiBppUefA3vZBP159lByFU90ASCh3VqnDJ0VI cBJdGkTGHriDOrfV+jGMh34GJtljDPfpYNoeh9wpqfvpXXf+Y29Nk73zHhJo4TWC 3ZRouWXbVyQT+AQGJCR7X6I3m4Vs3FJgD0nlViaDoD0hroQTI0R5p5mtiK3sqWhV Zz7BPeJ9hiH/TsbgLqyTrWjrGnW+atIDSYnuas/q3qeuOCj743E= =tcvP -----END PGP SIGNATURE----- --yhxnagpnshnqsemd--