Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1546006imm; Mon, 3 Sep 2018 03:21:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaDBZt3x1xBOtFa1Mcy9/6Itcr4pRpUz+W7gRv/WusQW4YsSqvwE7+oGe15cVxOUi8yK1io X-Received: by 2002:a63:ec14:: with SMTP id j20-v6mr25685994pgh.28.1535970115822; Mon, 03 Sep 2018 03:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535970115; cv=none; d=google.com; s=arc-20160816; b=JWTmO98ndPH+JLZlA+v1PPdhC4es6a99clCsOl9abPALhPdSztiW0WlXQPzJ7h85o2 3yE90xKugaYrUODbT4AqZGr9nYxpOoyfZUOAuRdrmm9YgXU+SUpJNnQdWIXmNX/Z7Pao MEquDtnpYrtsW9QC5RWqGK/vsN2kXb7t8LZMXY8ZBv9EkwzGUPUT9Bbu6qCWxGqCegzu nphpyuuDuyDC6Nei9R3t1qhtfZqovFrObUC121vzZHKyiwc7EizPdE+pUPhoTvVC5yuj TL2Rw5+o+N2quNxqz6HiDUzXCDRsHExYDoYToOu0ue3WDk124VSnN+Ty3MCfiGvejPD4 D4cw== 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=tTfkKZHnYk+vTQmTDZy+1YoyiECOz9Eivm5NCNssa+Y=; b=DKw0fCfftsMc2+95VZpJ879U+JuoqbbmaONXHEOb6h34YjjuXbhXpRFP+hj/Ngmwem LTWZ/ISen/VTGAVR7PkFXBCmfRqK6jqAokg2sG2MqZp+ubWgjtVVYWgmuXYu0FgcxB7z iELse2eh11myr1+YOeqZnQ0Nx72pvr4Cl6fFOB0ApllXXR8Jq43FECwtI1fFa7r/+BtT /52upUo+9quTtI79sKybLevoco39KLyb0E6G+UUL64X10sXDHBFYhv5tEjU6+QMmVqYc Tw1YSDptiaLuJkeQXd/fR+9pbjRSZ7iwzA36vTxV2MB7LLes5Xog6Dz87bFwCpkObgJC CrsA== 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 m37-v6si12508355pla.236.2018.09.03.03.21.40; Mon, 03 Sep 2018 03:21:55 -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 S1727637AbeICOkE (ORCPT + 99 others); Mon, 3 Sep 2018 10:40:04 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57272 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727333AbeICOkE (ORCPT ); Mon, 3 Sep 2018 10:40:04 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 635E620799; Mon, 3 Sep 2018 12:20:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-92-107.w90-88.abo.wanadoo.fr [90.88.33.107]) by mail.bootlin.com (Postfix) with ESMTPSA id 30E9F203DC; Mon, 3 Sep 2018 12:20:23 +0200 (CEST) Date: Mon, 3 Sep 2018 12:20:22 +0200 From: Maxime Ripard To: Icenowy Zheng Cc: Philipp Rossak , mark.rutland@arm.com, geert+renesas@glider.be, linux-iio@vger.kernel.org, robh+dt@kernel.org, linux-sunxi@googlegroups.com, clabbe.montjoie@gmail.com, pmeerw@pmeerw.net, lee.jones@linaro.org, lars@metafoo.de, quentin.schulz@bootlin.com, linux@armlinux.org.uk, wens@csie.org, devicetree@vger.kernel.org, arnd@arndb.de, vilhelm.gray@gmail.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, rdunlap@infradead.org, arnaud.pouliquen@st.com, linux-kernel@vger.kernel.org, lukas@wunner.de, knaack.h@gmx.de, eugen.hristev@microchip.com, jic23@kernel.org Subject: Re: [PATCH v3 21/30] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor Message-ID: <20180903102022.fkxfkxadkt4vpbmb@flea> References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-22-embed3d@gmail.com> <20180831091137.wkbbipssyd6mqfbt@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="572ywfuqjxaaxz76" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --572ywfuqjxaaxz76 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 31, 2018 at 05:51:41PM +0800, Icenowy Zheng wrote: > Personally I suggest to leave out all SID or calibration related > patches here. >=20 > Currently we seems to be wrongly converting SID to big endian, however, > the orgnization of the THS calibration data on H6 shows that it's > surely little endian: >=20 > It consists a temperature value in 1/10 celsuis as unit, and some > thermal register readout values, which are the values read out at the > given temperature, and every value here (the temperature and the > readout) are all half word length. >=20 > Let the temperature value be AABB, the two readout values be XXYY and > ZZWW, the oragnization is: > BB AA YY XX WW ZZ ** ** . >=20 > When converting the SID to big endian, it becomes: > XX YY AA BB ** ** ZZ WW , > which is non-sense, and not able to do sub-word cell addressing. >=20 > Maxime, should I drop the LE2BE conversion in SID driver? (I doubt > whether it will break compatibility.) This is exposed to the userspace, so no. Maxime >=20 --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --572ywfuqjxaaxz76 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAluNCuUACgkQ0rTAlCFN r3TJ2w//el4NVxPq4OpMbyzUfcul9GaG/NaAQItiR7kRrUtBBHzdsaOyUtn8TJd1 BWTbQRlOhE81VRZak/RPpOe1r7YTHQQehbuUgbxR7Zeys3Fx3JR+xTjGze5vXCNs 0sBgu13YW1elL8XCHTNbWfZOo8VVC9EzYOviuGPo1zkMa1w72pM58laCzMR5MoOK JimfZ/+UM/kIbY6mt8U/+0YSMG4S5STYOrScbJ5QdlRmPU3MLVl8LHwqqAYwbbV+ pP7J/B268S/GWa1jY/pDzWV/Gbq0vE+Cv8/iHFP5XesE0ixTzb1aRbC3K2vpawvC rMFVZCa6j5BS2Mx0NSwbpp9JNEmiuIfbBeu+7Eiz/6dXNGsaTFhN7vOUcKEg2TAo OsGgxFR0kgHwLOtTggBWGKEtYK6umCkKdMP+yy2RQWT6GYK91fx5e93jfQR9Vhvr 0pvmSPuXcdXHJtTyasq/tF7ZPD7rjLWkFCFQSzXDDmG9qczJEJZZ1k0oLfPi78u6 ZiRaaN5qLsp6HlnLGODI5jewkDZ9JwlzoPasrSJHlChya5KB/QbAN6fhwkLJcRJe ZEvqJxezEi+apkfMpWGhdI9D0ODGuNBuvQv+NqPLU/seQw1XJJvi0Zy2Bw9K6vnd PHRBUt/aPeR/Vr3ps4/93z3VJFcQws3dQYyxVj3J9FYy5jo4oYg= =IEeZ -----END PGP SIGNATURE----- --572ywfuqjxaaxz76--