Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1669040ybt; Mon, 15 Jun 2020 06:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTrJw8194HSt3veiaxrzoigZdClY4kNPrz38qmoFtcADRc451+Ix4dgFUAcD/GSuUmge32 X-Received: by 2002:a17:906:a2c2:: with SMTP id by2mr25271351ejb.454.1592227980146; Mon, 15 Jun 2020 06:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592227980; cv=none; d=google.com; s=arc-20160816; b=Icx1TYkO3kad14U50e0dacU5P8gwAsVMv3/royOgIIyvQ8ScUicVP//m5zyQ1jhq2V dfhU4tm6JO7iXF0lOiSmeI7Fw/3nfb1ztg3w48QJon5AImHjEcSMOoSHTbqwS/N+O2GW iA678lmObdMMvryRrwiLFGdLgrWhzQDkRffl82H7w5sgTSeAguwafm+CUV1nAtTu0Sns mKUvoEM3Ohe1oUWUoxe+YN4oqwYz/okRXxGuVQmAzM8W1szICSJNxamdtnCmg7yg0X60 NEpPK5S2RQ/s85fg1auhuE1HL/ZyDdmjwoRFKmqoAm3TwC8y5rBFM11ac5o9M3N2Ph5N 47fQ== 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; bh=Z6hGF8ZDxkHUk09bIO/lVK/DFpWWpta4LEDxElgFFk0=; b=HhzMDgoLnXLlQoDzcZkabEN0mj+KBG5GIHVpnQ5k9FCcw0X+m87+UH0L9avdLQft3P XS5HPaMWTj45nIOg9wuds1wrwzzrdE0EqsH7zgV80MMKZVULO2xY6xvOvFIbkggQq+zk 9qzYaiK3AAfyDBvS7NexP84hfmClMoyLFFQQ7G+Yfendu1XP4kE4IPcumSFGc2mtNknb U7Z3hug0fa4+oedMraF3hfDntgyY+t4Gppbjtws9liwWh+l3H+lp2wua4WAg5lBg2uXC ikEV0nhiivTUjqCjuTNv2ncQL0VAkNaPMB8PhRrmWCZJe5EyjPrNmjODj9D7ptF4ildd cawg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si9150088ejt.637.2020.06.15.06.32.38; Mon, 15 Jun 2020 06:33:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730461AbgFONa0 (ORCPT + 99 others); Mon, 15 Jun 2020 09:30:26 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:58416 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729875AbgFONaZ (ORCPT ); Mon, 15 Jun 2020 09:30:25 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 9F5701C0BD2; Mon, 15 Jun 2020 15:30:23 +0200 (CEST) Date: Mon, 15 Jun 2020 15:30:18 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mathieu Othacehe , Jonathan Cameron Subject: Re: [PATCH 4.19 11/25] iio: vcnl4000: Fix i2c swapped word reading. Message-ID: <20200615133018.GA18126@duo.ucw.cz> References: <20200609174048.576094775@linuxfoundation.org> <20200609174049.916148213@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20200609174049.916148213@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Mathieu Othacehe >=20 > commit 18dfb5326370991c81a6d1ed6d1aeee055cb8c05 upstream. >=20 > The bytes returned by the i2c reading need to be swapped > unconditionally. Otherwise, on be16 platforms, an incorrect value will be > returned. >=20 > Taking the slow path via next merge window as its been around a while > and we have a patch set dependent on this which would be held up. Is there some explanation how this is correct Somewhere? I assume i2c hardware has fixed endianity (not depending on CPU), so unconditional swapping will cause problems either on le or on be machines...? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXud36gAKCRAw5/Bqldv6 8qWCAKCEGkUDcG/NxiktjeVkI549kb/jxgCfaJisPSiR0vHZMDMtJyn9GmhwT1w= =1tNG -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--