Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp488560imm; Fri, 31 Aug 2018 05:55:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbkPAhij+i83YjlRg/e40PSmq4IKaKfYcBOJdjaiOTmWgFOFEWx2Oe0z2Rbi3aTL0ktba1V X-Received: by 2002:a63:3245:: with SMTP id y66-v6mr14318123pgy.101.1535720151111; Fri, 31 Aug 2018 05:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535720151; cv=none; d=google.com; s=arc-20160816; b=Tb+NdnuMWP1ch8hQyeajiUlYOH7RYv38jvCcDiAgdVMsjkC9rBparkyl/QebFFlqyd DKX9yu+n+7zjBRgPLGytpAKwcuY3Ixz04WvUwp32l9JbN2pTQMXPzAmmBw28w8yiRGDz 2K6GkQ2y2Q4MtHqWAuniqOvmvdmpLdKgqcovrUijsAp0zxqdOK0fgwsCpOBeE8lgwCdG 7rUdoKwEIwXECXFpWrpCYgbhCA05Gw9wceZhQDp9X57LHopNXhC7DepST6ThA8yG6TvN ZJqTZCAGETPN+4U/OIEBNbhaPkTXcSG8dcxzRqW8y+fAb6240TnWtdmWOM/HfvRlKjgQ s/pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=4KOS0mLx+FT5cbe+p8xosn1lWfoGzXaOhgGKXjKq2JI=; b=bFFcD3HE+nK9JhN13XtlalyWnc205syeAH977su//mj+7CKnQOot9rctrM4UGNJfAK tWqXZVfGKZzkTPyHXua8EZd1tfFFgp4yDdIU/eBD5qA9kZFaGwRtZpf8tkHlAXojLLZf 3xAIJBo2Xg629kSTOJshRJrtgKmVgXA4ST8AxqAFBCVRhXzBAlPXw0JE8nINIe/a9JZb E7hVA1yf+ttxRKZfrcrZ9LjVcwwhIxy8kSTBAXNPChg6lzup2HG/hrmcmXqKjzWsaTmB qEXX1h89Mss8OYzxcDz6oDggZLA0lJIm21J8bZ+2HB0p1mPYP3E+YuSxQs3CdWxHpNre Ywrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i7OVJuS9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si9188210plp.335.2018.08.31.05.55.36; Fri, 31 Aug 2018 05:55:51 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i7OVJuS9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbeHaQGF (ORCPT + 99 others); Fri, 31 Aug 2018 12:06:05 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38484 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726990AbeHaQGF (ORCPT ); Fri, 31 Aug 2018 12:06:05 -0400 Received: by mail-wm0-f66.google.com with SMTP id t25-v6so5077824wmi.3; Fri, 31 Aug 2018 04:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4KOS0mLx+FT5cbe+p8xosn1lWfoGzXaOhgGKXjKq2JI=; b=i7OVJuS9BVvQD9hRrwL07SRfO8xx0EgoelDYhwCYAQdvRpvREUg+OjzAeYYiEQDNhh tvkG9DcofAqI9glhAxi8VzMRB+YUfIv9PkWMvFjIkJsq8xGcMvNzRIAH6xQSSUsQO4JI 2G7UDr4ubgTg+EESDr+qviSxTpX95tz43pAdS76WmvqcSnvvcHI6vJrvrrvXkyJY7egf /6mihptt8tYREpVeHnPgG8p7f/WZd87iW/VbqFW7+mN8vKtorj73eC3YbvacBZOBLpi6 He4FM2ZblqFwRpRntVDO/7LRRffsEhpdtnKtxWvSWNdjnL5N7wldb6ot/g6OGg0RYgVr 8ybA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4KOS0mLx+FT5cbe+p8xosn1lWfoGzXaOhgGKXjKq2JI=; b=Oy6YqF8V/GJqngSTMY8tyInGzaAT1FU6wotKhX42h1Vft628X5pXsfLCSlnxL1wmvM 86C14h8GSplIxv6kl6EkzsOYhnJrByKhHTa0Q0XgKuET9+L/tUQkZkvT8GpedQfGd3DT 46t8jhTeEYY1t/biq3TK/jwlPcl1RkIGQ/+EeZevcM63G+m4GQLOs/+2mthhb9WXkVKg mDAUx3+9vobjuDkj8fdBWqEQZqzKjx8L6XRrDVF9Mg5nhqAmBbUK7Ih5B7NsTKutH4kS /WHiwmm1o88TzD4ebsZViWjGwhI94DJAL2Vmqz6GeNNiGspDsfQ/ZyL4Tb5fk/DC6eIw lyLQ== X-Gm-Message-State: APzg51BbSAD6SY0LhU+/ny0Fyz4m+LjPnhQs+54P/Lhy8VvMV3Nmj04/ 21p5lRfFP95FRAKPPWQCSig= X-Received: by 2002:a7b:c017:: with SMTP id c23-v6mr4637510wmb.136.1535716734976; Fri, 31 Aug 2018 04:58:54 -0700 (PDT) Received: from [134.60.170.20] (eduroam170-020.wlan.uni-ulm.de. [134.60.170.20]) by smtp.gmail.com with ESMTPSA id o33-v6sm15996952wrf.11.2018.08.31.04.58.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 04:58:54 -0700 (PDT) Subject: Re: [linux-sunxi] Re: [PATCH v3 21/30] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor To: icenowy@aosc.io, Maxime Ripard Cc: 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 References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-22-embed3d@gmail.com> <20180831091137.wkbbipssyd6mqfbt@flea> From: Philipp Rossak Message-ID: <247ac301-0f33-29d1-ead4-d76f54a226f9@gmail.com> Date: Fri, 31 Aug 2018 13:58:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.08.2018 11:51, Icenowy Zheng wrote: > Personally I suggest to leave out all SID or calibration related > patches here. > > 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: > > 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. > > Let the temperature value be AABB, the two readout values be XXYY and > ZZWW, the oragnization is: > BB AA YY XX WW ZZ ** ** . > > 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. > > Maxime, should I drop the LE2BE conversion in SID driver? (I doubt > whether it will break compatibility.) > > Philipp, could you delay to send any code that uses SID? Yes for sure! I will move the related patches to the end of the series and add a DO-NOT-MERGE flag in the title. So I can get those also ready/reviewed but not merged. Icenowy, do you know more about the A83T SID? From the general specs it could be the same like on the A64 or the H3. Thanks, Philipp