Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp39539imm; Thu, 30 Aug 2018 13:48:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbTGEF+4OEs0V2YoGzCwOqdTyfmDLg3RwIAwUhxwshkUiVsFhBJps/2AoMChx3xAmSG9V32 X-Received: by 2002:a63:7e1c:: with SMTP id z28-v6mr11211631pgc.246.1535662130716; Thu, 30 Aug 2018 13:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535662130; cv=none; d=google.com; s=arc-20160816; b=Fh6CBEShkX+ylYKYb+426XWM3MoIj5beLmTPGCrGcDZLob2hagQXHVejPSp8PWAPzl lScqdqnG1z3Z1z3dO7K2bEWxOTIGdY4E9ITZ5KQ/QUf1o25DycRDBGQZARnu9rxgbi6E U2kp/59/JF6s/yUfweM/5nSUjHW/9SGMskGnUVsAWx5t0BnhGG7gv3mucCcnwaNHS/Su XLUOqjQ2+Fy0psD6x1k/8qXWhLDa8qum2r4escyYTdOmJiX5lQj7VLYcNnd0h0zkBu6w na2sju2r5v3+r3elHd14KHBEi53HINIbrRgfq9PQCrDqWklbf+zoHBQF+mdqkMYARDPS NuKA== 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:references:to:from:subject:dkim-signature :arc-authentication-results; bh=mRiDOgmOGX7HWwaBkYd3ttcY/QxJNCT7YyW2QTOiM9U=; b=UpjJqpaHZ9T+clhGZNRrj2hDfDzxegQxjfRU8p/w4yrzQzmgC62QrT7i+bssHZ2gED wGMvP8Ii2g+UJkWVuLOIVBZsMowpe/0YAQcqr49PrfUyALj3HPIK9h+oBINYmYKrVh2N eqjd9CFmR5ok7CcckfQzcjKb6v4CeQ9R2GZo1bWv3J0Z8iZbm1IBNDZCgeVvWjXYB5HG /kAZS+uGfsaOGW4vaQU+vCHeKt5fERa2BPq6888hFQmTWWEC/+J86Tk5OlsAapzheYOU DVG8P+FQk02QCz36RcDhGoIZtMqG8xYgPq8bLZ7BwdcWSE3HkHoek8yCvhpc0J9ZDjjp J/IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iXreErcB; 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 m7-v6si7081260plt.7.2018.08.30.13.48.35; Thu, 30 Aug 2018 13:48:50 -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=iXreErcB; 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 S1727394AbeHaAvD (ORCPT + 99 others); Thu, 30 Aug 2018 20:51:03 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51013 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbeHaAvD (ORCPT ); Thu, 30 Aug 2018 20:51:03 -0400 Received: by mail-wm0-f66.google.com with SMTP id s12-v6so3233312wmc.0; Thu, 30 Aug 2018 13:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mRiDOgmOGX7HWwaBkYd3ttcY/QxJNCT7YyW2QTOiM9U=; b=iXreErcB0ViPk+waUuavt2vhjJnegQwZcs05ZEe6jCupLNIjWgq878BnD+xWn2eyoK wh2yV+p7yPkpuEWXeBl0sCgnvSmiAGNUCiBhTWdXUiu+Oe7MK3JenmifM3MqkP1vWN0b aj3Q7lom2DyBAePNokhOAXy1n5sPxORXcH3x0BH4XexKE2Qoo0VlE5hMLH3MEs8pfjm6 0p5550m/CdycPoIPN18vgebcYJHJO4II9YwJOp/FI82WiPi6BTruQqTGW0+AaH4MZUlD eTeeWcX/25k2RUpFJyhecowjZFskmUbMrKntHlRICgHtcdqj18h/LYTxc9RBIOqBW8su vB6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mRiDOgmOGX7HWwaBkYd3ttcY/QxJNCT7YyW2QTOiM9U=; b=TwOUk4oHPo/x9dsoEhg7YtZi93sByeyXH1RinKdWxwrzE1Og4b/qwyWnQAc2DY3liv TqV287JmgsrJTcFEU4xNPskwcPM3zp2z0RFQH7T9BVXusE4T0q+YafM2yhFNME9OmiK+ xMoqmdlvVBI8K6DclU1sY/Q5MdK/e/KeQsyOEL/LKBYojOhR7EBuskWN19WABsym2MlI hMGSG5Wds14vL4Y0ft/CtvAHT6sGSuzMehbBZ7hSZQgQknaflO0XekQU/bY5KkinjHl0 WVBc8RH7hdmdQfK8980evh8YVGmQMF7QKSKN0JzyxFAzFzXH4SUOoASdE9B/fQdx/WYT EANw== X-Gm-Message-State: APzg51CuV0KHkAOTfCBR25UAxV/yhrNZOAxlEKDlc/3Ss8ZWPkr7EFQG RUyzZnJDeBqznvGVfJ6ieRY= X-Received: by 2002:a1c:357:: with SMTP id 84-v6mr2803513wmd.8.1535662021757; Thu, 30 Aug 2018 13:47:01 -0700 (PDT) Received: from [192.168.2.67] (p578F0EE7.dip0.t-ipconnect.de. [87.143.14.231]) by smtp.gmail.com with ESMTPSA id y206-v6sm3505035wmg.14.2018.08.30.13.46.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 13:47:01 -0700 (PDT) Subject: Re: [linux-sunxi] [PATCH v3 21/30] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor From: Philipp Rossak To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, eugen.hristev@microchip.com, rdunlap@infradead.org, vilhelm.gray@gmail.com, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, geert+renesas@glider.be, lukas@wunner.de, icenowy@aosc.io, arnd@arndb.de, broonie@kernel.org, arnaud.pouliquen@st.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-22-embed3d@gmail.com> <20180830162734.uq65l6ox6uwrmulo@core> Message-ID: <858dbcce-027a-5f48-ce66-06c79b6eeadd@gmail.com> Date: Thu, 30 Aug 2018 22:46:58 +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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30.08.2018 22:00, Philipp Rossak wrote: > On 30.08.2018 18:27, Ondřej Jirman wrote: >>> +static int sun8i_h3_calibrate(struct sun4i_gpadc_iio *info) >>> +{ >>> +//    regmap_write(info->regmap, SUNXI_THS_CDATA_0_1, >>> +//            info->calibration_data[0]); >>> +//    regmap_write(info->regmap, SUNXI_THS_CDATA_2_3, >>> +//            info->calibration_data[1]); >> This should probably be implemented, or left out completely. >> >> regards, >>    o. >> > Thanks you are right! > This should be implemented! I will fix this in the next version! > > Thanks, > Philipp I just realized this function need to check if calibration datas are available. Writing zeros to the calibration data regs "breaks" the thermal sensor. Philipp