Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2908023pxa; Tue, 25 Aug 2020 06:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr+HkKzgOIxsnGAWUieOs/Cb0iGhlndkknMknchKCnG1OZzv8/wka3X1JfD6cFhTOn0QBT X-Received: by 2002:a05:6402:3128:: with SMTP id dd8mr9966724edb.97.1598362932326; Tue, 25 Aug 2020 06:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598362932; cv=none; d=google.com; s=arc-20160816; b=DIyWrFi6piQcLk9ka45UntdW6MRuT54ZNHH4qvK/84W8FOFOCY6MjA3FPfp8dx78wR WPMb4Q3l/5Qagf4+yj73aIiBbmCtEarhGpYUlse+O0gYi5DOAJkPCmPziB3zwQpSYi11 4ofLs031TNuJsAWLggoIgS9FLdfdgQd8jlWJV1o+0lGHuVTwRc/3q6BMx1w3L4TuS9ir cKrwgLF8hipE4zw/ydAlUxhlNRkMVhongrUEqE0jHI5xdyQuXTHbYuW0dy8QnRNwQ1xS Ja3orykSnE4BIf/GW3yc5E/qpBPygKFrvlhnJ314SCNGEgY0LLT4ytLaBa9MXB/o5GhH /Z1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=7A7IyNQAX4KGw2bi0hCwk/gNt7/v19Lp9o3x4DENAWI=; b=OgQdGzTPsFaBL50ZtcgVL0Wp9fgnfGVE/5Pc9CZ4FgJdsBqspt8HNCtgo+1BuKp0CS FJmM/eEmg3YM3IuVwlYHFvgxNAQe0VwvpJ5U9vSXzijZ/BnpTNtvKsW3ag6WAaIIWrF1 a/O0QtOoRqs4KTTub9+LztM2vo+8mLW0BgdEwFsKhdCRD5iHeuBekPaZ9vXyxc2WOrPA TtEhtv1FY8UDCbc8j3CC3awRK6rD/VNE2xwQXG597aNrfL0xxll4aS0Cc6drNl+Y4TEK zw939pEPEJ2aVD4bWNnCEUCGwugSLoZaq8FNQ2mPl1FQTGPaYI2oMSuch+5APyczC/qD ndJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XFK78CQl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=K5CKLmlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si4866446ejt.491.2020.08.25.06.41.49; Tue, 25 Aug 2020 06:42:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XFK78CQl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=K5CKLmlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726851AbgHYNhL (ORCPT + 99 others); Tue, 25 Aug 2020 09:37:11 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:52193 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725998AbgHYNgH (ORCPT ); Tue, 25 Aug 2020 09:36:07 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 430D8CB7; Tue, 25 Aug 2020 09:36:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 25 Aug 2020 09:36:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=7A7IyNQAX4KGw2bi0hCwk/gNt7/ v19Lp9o3x4DENAWI=; b=XFK78CQlOrY04Z0f4pm6PsGxK52trgYd4RzZAi7cc4x ZuD/l9TkbBAwWP33ZgkIyr6uPNAjmvtEUW3HwC+E+90KIFNUiL4WYB3M7UAcAKF0 xlPT7O0ddPJrwtxbFviVBMbgl7dW9ifKII41zXLoAVWg3XZJhS/MCtMVzdGmTkTX y+jsQT5cETKWRWBGuQEBWVDGHrsg8VWobYmXUzi7O00hKzJk//7E0h9+i9GSzOAM 2HjHLro5ekq3plgB1/+V+85hiitsEhSDUibKQxWRP/LHJv47RAW1u80qCdt+L+6W zLAEuLcIQlL5XLS+n71gKwvPXLlqb0sUtBjFd6Dz52A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=7A7IyN QAX4KGw2bi0hCwk/gNt7/v19Lp9o3x4DENAWI=; b=K5CKLmlHcw71nJDgSpEpt9 TxGws8VwIjUuXZPHQBZPx4mZ1aK2iePGVrx4MweA5sGaCKn6l5zaxpMmUn/jdh1L MT0ZIGKiwbeugKQ2LH+iZ5T7O+qJDilCC5pGZ3/3+DtZATdXHkWLOI/dh3H5D1dw 0WvYLIpE3pALi7SOipu9ZfW+axc5DL9BDJiR4bn9AUWcGBxuHZ7dagtH07H1QHBf VgAPWUqtTAERLFwq//BuGGutk49rl7qKHk/9pUVRX1gQVEoxmyTLfGXTcHaz2Cr+ xPr9YAqzQa7Z2UqBsaKliv8QAW7HCaleK9VbcpXDA9oxfBVoUnMIc6ILKcTR70UA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddvtddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgepudegne curfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B7A43280059; Tue, 25 Aug 2020 09:36:05 -0400 (EDT) Date: Tue, 25 Aug 2020 10:46:10 +0200 From: Maxime Ripard To: Frank Lee Cc: anarsoul@gmail.com, tiny.windzz@gmail.com, rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, robh+dt@kernel.org, wens@csie.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, huangshuosheng@allwinnertech.com, liyong@allwinnertech.com Subject: Re: [PATCH v5 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate Message-ID: <20200825084610.s4wfrdcix46ngztc@gilmour.lan> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="amb66d7k4sp7gd6t" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --amb66d7k4sp7gd6t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 24, 2020 at 03:11:42PM +0800, Frank Lee wrote: > From: Yangtao Li >=20 > For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of > calculation. On the other hand, the newer SOC may store other data in > the space other than 12bit sensor data. Add mask operation to read data > to avoid conversion error. >=20 > Signed-off-by: Yangtao Li Acked-by: Maxime Ripard Maxime --amb66d7k4sp7gd6t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX0TP0gAKCRDj7w1vZxhR xccQAP9CCPtCw7TtG7p625fxJ0FYNYrLiEl6trsuXgmQC1WKygD/baMZswGDFigJ KpxCgoleFdIJu2WpLSR+zOzbvULctAw= =p4tr -----END PGP SIGNATURE----- --amb66d7k4sp7gd6t--