Received: by 10.192.165.148 with SMTP id m20csp4727594imm; Tue, 1 May 2018 02:39:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoLUvP45hanB1zZFKhvzqrqOzYPP1CqHjzGDnAh+4DrnDPi3BlRCYPLmZi/0+Jhf5xPoLHV X-Received: by 2002:a63:6441:: with SMTP id y62-v6mr12689815pgb.362.1525167585523; Tue, 01 May 2018 02:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525167585; cv=none; d=google.com; s=arc-20160816; b=NP4UJ585z7amizorNgPKU1mvkkNZ88lKQ56w7ngvAnXYBpvk9UYZnnfWYSnpCLyUD/ U4E+9Cq4OmQF3qMG0bHUe3zw0JUjrs4brIGvw6414rVkQWxLNP0ijdQxBAWJD16hIwgy Zwk+eL7ewLWqz/0NXL+TfHJ/OYgTbkmvRhNHIKDbY29xv/AEE/AoFaOmbf4FvPuY40Ax w/nt56/owFd05Jk1A0g18/irr05ipAJQE0jQTPHFeDmZeVuiLMJlv5wfHpzslwPxdzYQ 2LMIe+RQ+bk/m4R5N3EjWWRQAIlhdC+fX3CQ44tf5gmYtumKzES7duVUhPeVJtpieBVS /wLA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=L+Y8iceXLAMIxxxLJ3Gnq+M7BFDQC4tfatCaC20DaX4=; b=nW/9I77A+aSzELjIniNKqeccwh1+EctvKv17WHuJD5i8jH9nVprFmnAIGi+FV/21mc fk5dnpRlQx6fGX8ehg3XVRWLajHCb33kcIGxlv5UbBFM4zLnsBl/Mt05tdcuv8yc8OqZ sgt63pv+mI8owpDMoOT2j6Lyi2BE71vmxM9Xf1V7BRCVM17IXMkPlmyKKdgoCZBHLnXA Atv3riBTWkqKBstPdRDj2KKbTQ4oKAqzSYdunslGT+dOV8bjjKlL2gtRGGe5gr91IZjM g9ajCifm5CswDTCSYM3XH1Ckq+2Cw3pzV5wDf41wdSdH3O04Ke3DsYbBfbsn5b7nxKyB zzMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QpiuUGSm; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e84si5990172pfk.198.2018.05.01.02.39.30; Tue, 01 May 2018 02:39:45 -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=@linaro.org header.s=google header.b=QpiuUGSm; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753505AbeEAJjU (ORCPT + 99 others); Tue, 1 May 2018 05:39:20 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:41192 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751148AbeEAJjS (ORCPT ); Tue, 1 May 2018 05:39:18 -0400 Received: by mail-wr0-f195.google.com with SMTP id g21-v6so10347530wrb.8 for ; Tue, 01 May 2018 02:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=L+Y8iceXLAMIxxxLJ3Gnq+M7BFDQC4tfatCaC20DaX4=; b=QpiuUGSmaPF1TE+CfLyxphMGgzI0C4qyIF5fn5tg9HvJiGAVTYYtsImwYRuF8vcYuk Xjah8H+bWDMvWkXonyUZrP0byIGQxbfXI67sSPp6w3TLUp2XAeh8sUh2NSDMAS3RFoeE lt0ZXZJZDOqPbPSrsBSahmJ4/cCxU99bSCqso= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=L+Y8iceXLAMIxxxLJ3Gnq+M7BFDQC4tfatCaC20DaX4=; b=Vz/t1nAT75yQcjULJ8l4eyVsLqJ8sCh0DbfkL8JGzkrtM9miS2Aek0+1+9goguE/ah F50dNRbd6RR2IhCcQf7wXbnEjS6oaveXMBlGtVFF3bSoztdh7dCr5wx7PMBIb8x2jtTI 7GRhE3TKz9xJkpoIDAFAgQiKVi5p+DWoL2fL3krty1imZVkGA82xcQx5GvU+jKLE0EUH JwW7++AK49WXGIaNmpmVBPjrh5PKAc3R4MIZ1j45SE4bCv5V2C+B9zPjLtM9uc0DAtUL dVxgpONpu45JTZD1xpEZZItetReTuM1Xj+yi/LUjYJS3ErtQ33wl8Ap/ZKS5221yKyBv 1Lvw== X-Gm-Message-State: ALQs6tCzKaW6ZsxZAR4jrX3jDjz3kkPDfTlWwhg/hDVPoLLnFXoIMdoc cUVIPe71uWBJnoHck18lVH1ZdA== X-Received: by 2002:adf:a805:: with SMTP id l5-v6mr10278349wrc.97.1525167557147; Tue, 01 May 2018 02:39:17 -0700 (PDT) Received: from mai ([37.171.255.167]) by smtp.gmail.com with ESMTPSA id q7-v6sm7925026wrf.49.2018.05.01.02.39.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 02:39:16 -0700 (PDT) Date: Tue, 1 May 2018 11:39:14 +0200 From: Daniel Lezcano To: Bartlomiej Zolnierkiewicz Cc: Eduardo Valentin , Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/18] thermal: exynos: fix trips limit checking in get_th_reg() Message-ID: <20180501093914.GG27619@mai> References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <1524743493-28113-7-git-send-email-b.zolnierkie@samsung.com> <20180430153431.GB27619@mai> <26762578.lZtk787caq@amdc3058> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <26762578.lZtk787caq@amdc3058> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 05:48:29PM +0200, Bartlomiej Zolnierkiewicz wrote: > On Monday, April 30, 2018 05:34:31 PM Daniel Lezcano wrote: > > On Thu, Apr 26, 2018 at 01:51:21PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > of_thermal_get_ntrips() may return value bigger than supported > > > by a given SoC (i.e. on Exynos5422/5800) > > > > Can you elaborate a bit ? > > Odroid-XU3 DTS file [1] define 6 thermal trip points (2 passive ones) > while data->ntrip is 4, the current code works fine by accident as > the threshold values for trip points 5 & 6 don't fit into 32-bits > threshold value (however since they are passive ones this is okay). Ah, I see. data->ntrip is the SoC specific tmu max value capping what is defined in the DT, right ? > Of course the code for handling passive trip points still needs to > be fixed to properly handle all odd cases (which are not present in > current DTS files). > > [1] arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi Yeah, it is definitively a good idea of cleaning up this driver :/ Reviewed-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog