Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp240980img; Mon, 18 Mar 2019 02:00:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC/J4mYcJnduLcalF7bcxR0EW4qjWTlJ5jGgHA7lI/miqmW9I7n/ALNN1VIzmP/i9OZNKW X-Received: by 2002:a65:6554:: with SMTP id a20mr16645628pgw.170.1552899649709; Mon, 18 Mar 2019 02:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552899649; cv=none; d=google.com; s=arc-20160816; b=DjojonGzq/hw1p+X744PB4HfjfNT0Jhe2kDkOl+LgGjTSd4OnJy0ggCAguhrp3jOGy /MLASLTUzLhbnMb3Zh74a/KcwgroTgn37502FvtwdhgBgu1CPQik7sEXh7LcnOQrrbKJ JYS7YPPavRVQSaWmUkeY45pn5wR7UDC1oyvhI6HRZkJqMf9I1Z4FeOlp1ohUMRuodii+ AMSuZbfKuM/ijGrAClfBT3elLAQe86cdz6UkjT/l6CcRPByVW0iRdHmyvwIhg9ZfFsOt UDAJ+76kzksWuedD4b3GWGkUssa55YBPfuNtfPn9QGD7Fbp0XIfrAle8SNiz5qsUxQrb UrcQ== 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=/eonfsfc7Y5nY1DapZfTXiK+5fEu9l2OiHrCNqh/3SY=; b=ZljrP3PcxsmpGKDyUVabMnt8xFWbcEHfLVDsBEzP6jwR35y4QlVEdpNLzr0Onu5FQE Z8qZpOCqsMKOKxa3JDDdxs78BrMa3XdDXBgo/oWzgkZ8bklWNk88tykDyrEgjjBdThZz leGobb9i7OKPd92o71DIfXFlM2EMlE0FcMNBboheuuoRO68Y4wZh5yBsn0sytPsZmzqY H7HqAZFU2jPC/shYLNCcY7cgCAuZcuHSaTfLgEW0c327zFyNf694qlPVd3CSKOgSUjR3 DmXiTZWj3mAQbsF49plhs9WR4Z4MHKB6xhu5br/pPCDgW4JDOZzOFezfWlAFr1XUASUM fPHg== 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 c15si8587083pga.465.2019.03.18.02.00.34; Mon, 18 Mar 2019 02:00:49 -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 S1727218AbfCRI7S (ORCPT + 99 others); Mon, 18 Mar 2019 04:59:18 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:42127 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbfCRI5y (ORCPT ); Mon, 18 Mar 2019 04:57:54 -0400 X-Originating-IP: 90.88.22.102 Received: from localhost (aaubervilliers-681-1-80-102.w90-88.abo.wanadoo.fr [90.88.22.102]) (Authenticated sender: maxime.ripard@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id F1D48240003; Mon, 18 Mar 2019 08:57:51 +0000 (UTC) Date: Mon, 18 Mar 2019 09:57:51 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Srinivas Kandagatla , linux-sunxi , linux-arm-kernel , devicetree , linux-kernel Subject: Re: [PATCH 4/6] nvmem: sunxi_sid: Read out data in native format Message-ID: <20190318085751.kziqzxnadtho4kdb@flea> References: <20190318073354.12151-1-wens@kernel.org> <20190318073354.12151-5-wens@kernel.org> <20190318084212.lv2lorskizl65uzg@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="la2n7sufjnrgak3p" 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 --la2n7sufjnrgak3p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 18, 2019 at 04:45:19PM +0800, Chen-Yu Tsai wrote: > On Mon, Mar 18, 2019 at 4:42 PM Maxime Ripard wrote: > > > > 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? > > It is noticable on the newer SoCs. The old ones only have the 128-bit SID, > which could be read either way, as AFAIK it's just a serial number. > > If you think we should leave the old ones alone I can factor that in. IIRC, there was also the SoC ID in the SID on those SoCs as well, which we might have to use in the future so we'll want to make sure it is correct. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --la2n7sufjnrgak3p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXI9djwAKCRDj7w1vZxhR xacmAP4xfPGpJtpCHJ0I2F8yxGCMGRneL3goh1L81MJkeHEBLAEAnmZ8MEF+36qZ 4iIBaJugFY1u2UhzN65t+mHMEi0+SwI= =bftt -----END PGP SIGNATURE----- --la2n7sufjnrgak3p--