Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp231331img; Mon, 18 Mar 2019 01:43:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzulXYurA7mbco4o1vFmcOOV16VEHF+pje6giB8t4JOy0iyr4AGeal5QXHr60clvcqJXVxc X-Received: by 2002:a62:7042:: with SMTP id l63mr17835325pfc.1.1552898619613; Mon, 18 Mar 2019 01:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552898619; cv=none; d=google.com; s=arc-20160816; b=IW3JBql2DeId+BBYnberCxyEn4gBOHavrEslKtK603V++9VWvzxleMIgvp9fbFTcpz iwGXMFe+uNQNbyYnJvaD0xhAp7kCx7VgZhxJlz+ezSRXFsOgM1DJaoqm6ce8jqPts0Ev 4wzUO3mjS5fFeUodwGfEZQUWymjgt2S3sVbZ8rDMU8qdx7IMUtbzXEw04ArUt5jeQ9a2 7c6PmK6Lx4kgqZjMWEasDCiGwqyLWluZxFJv1Fe2AfxmmH93hByCYIFFnxONUDQ0tQcZ Cz1xXU6ONVA7isJlLirFfz7Tp1VEprQU4MMMUMF02nlaLwKPOtdVI+WXal2+aBffay5t llaw== 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=8NIqv09x1+IkpF0taFwMpKw1P97qtqDi3eO1MK38hUM=; b=romhHfw17ATjO3CHLRw+/tQdH0SE6C3q40SUJBzA8wRBRxazxrvTwr8lhYjWq7nFtV lEHmV0752OAxs1YPIGcWhpDnmrQ4t7bycbOiNfG34Wy3lYKaLjcCm5W5m056boVk5zsw eHJ1nKE0XDyMGX1fMP06Z/fH8rxBev2KpoTxmTy5HwCwEymF/RjQey1j8GSVvM8epha9 ZD4fiR0mnueF5Rys6rLDb/HBlRF3DVqgQ1BjvqHX7pK/7WOx3fOMmtVJxQIVO3QoqhC/ r3qNHVJDBnp/C2/fq/aiV2oxBxc/ee9/vhJd7jqqlBoMDS4vUz/Q0ILPrTnvm/2jj7Hp n72w== 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 g10si8430607plo.308.2019.03.18.01.43.24; Mon, 18 Mar 2019 01:43:39 -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 S1726891AbfCRImS (ORCPT + 99 others); Mon, 18 Mar 2019 04:42:18 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:33267 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbfCRImS (ORCPT ); Mon, 18 Mar 2019 04:42:18 -0400 Received: from localhost (aaubervilliers-681-1-80-102.w90-88.abo.wanadoo.fr [90.88.22.102]) (Authenticated sender: maxime.ripard@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id E851624000F; Mon, 18 Mar 2019 08:42:12 +0000 (UTC) Date: Mon, 18 Mar 2019 09:42:12 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Srinivas Kandagatla , linux-sunxi@googlegroups.com, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] nvmem: sunxi_sid: Read out data in native format Message-ID: <20190318084212.lv2lorskizl65uzg@flea> References: <20190318073354.12151-1-wens@kernel.org> <20190318073354.12151-5-wens@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pby5l7iw3zraifpt" Content-Disposition: inline In-Reply-To: <20190318073354.12151-5-wens@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pby5l7iw3zraifpt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Mon, Mar 18, 2019 at 03:33:52PM +0800, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > Originally the SID e-fuses were thought to be in big-endian format. > Later sources show that they are in fact native or little-endian. > The most compelling evidence is the thermal sensor calibration data, > which is a set of one to three 16-bit values. In native-endian they > are in 16-bit cells with increasing offsets, whereas with big-endian > they are in the wrong order, and a gap with no data will show if there > are one or three cells. > > Switch to a native endian representation for the nvmem device. For the > H3, the register read-out method was already returning data in native > endian. This only affects the other SoCs. > > Signed-off-by: Chen-Yu Tsai I thought only the newer SoCs were impacted by this issue? -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --pby5l7iw3zraifpt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXI9Z5AAKCRDj7w1vZxhR xag8AP47BMEXFaDn8FTHN67Db5PvozKd5J1OIkr4/NQzV5lLIQEA+3LzHeutDmpg VTbAfwne4GqFJ4QLhJRD4BSuWRtyOgU= =sOTk -----END PGP SIGNATURE----- --pby5l7iw3zraifpt--