Received: by 10.192.165.148 with SMTP id m20csp4745039imm; Tue, 1 May 2018 03:03:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrS5K/0EXhBgPadYO/VX1Xl9UK9R1Sb4fM2VYUVs41ztIS7h9jVP9g1zHrrmiCpbOOhvKc3 X-Received: by 2002:a63:7e4e:: with SMTP id o14-v6mr12313833pgn.18.1525168996499; Tue, 01 May 2018 03:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525168996; cv=none; d=google.com; s=arc-20160816; b=XhuJnuOXFEf+T3LbZDJMd0wmT/TElePUP1tsq7RAyAMRs3d5BHPd7bRwwaw95JXZdX FtUkveAmuHMn7lKRVlq25c5vgzbMA0You753iNJRs2BRyQ6NJCNVHz1GpuLoXMHMAvSh 4vWmYWOd3wGAnMWsBbViWST4NF5+jH97axf41/JXI5xt6Eeep65kA9XeagGRtQWImGNg hSiuHrBVE81sILmfcg8XRepxWFxvK0IUZmOn5PamGn6XqgpXKfjFAacNrChzvcD6EbAv lrGqMMh4TGwwoRL1wNuObY7h1/gH3A01okOVAFgvwGkXO6MNOpWMD84QNsjf3n35sEYp +GUw== 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=pMzmoSmtbShch0BrJj984J0Z11cX4QqgoKmT7n2aVTg=; b=uuyv5qpS/yJi/fFLzS546s0Sbkmw7BtA0z8Dp7kB/kOOxs08HRRB+Llj+LM/PtDuLd jGPlFtduPPtl3VbmdloTE+opXjejYGEG05rW5B32GVcX3Mad7GYUHrJoYIqAbMyaOM7K B/N3g4k8nxBlM7w4PWjfH7Ij0uFxEJhq28vNQVUCFVnY7hYOCro5jYK9aTlROeT2Y4sj ShO9girDANyC/7GTOiW+3jcM3jMcCq+jdKPdLp4dXbBu3xZSfBQ2oeTHQgvYQme7Gae+ pHKHJpAhw4k83RpH8H4OkdDyGtpt4EH1n+vJW7Ci3OY+t/sks5bXU1JR2rBn92xql3VQ IuIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P3VeLUjR; 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 m22si6747643pfg.323.2018.05.01.03.03.02; Tue, 01 May 2018 03:03:16 -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=P3VeLUjR; 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 S1751677AbeEAKCs (ORCPT + 99 others); Tue, 1 May 2018 06:02:48 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:42673 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeEAKCq (ORCPT ); Tue, 1 May 2018 06:02:46 -0400 Received: by mail-wr0-f195.google.com with SMTP id v5-v6so10392535wrf.9 for ; Tue, 01 May 2018 03:02:46 -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=pMzmoSmtbShch0BrJj984J0Z11cX4QqgoKmT7n2aVTg=; b=P3VeLUjRrw6/bwlZE4EMqiR0Qcm23ptzrO9fr2n4wk7Ng+OIoB+XNOjkw1Tod/01mF FTNR0LqLh4TplumzT210gTKYyvGedyBhPXgdcPpYxB9FQ8AsOpljUNpmWpkdSeJ71Zvb 4Ht5amNpTbRKkHYZQoztbhAJGqgnY8SACQIrU= 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=pMzmoSmtbShch0BrJj984J0Z11cX4QqgoKmT7n2aVTg=; b=fv3fxFhNFD07kpw7oV4cR+PbYjO/J9yp7uA8z1cO6LewPoozzaTGTJRmulfkwLwPWL 1qJh49+ZTC1zpiDjNsef3bMl6A/oqELBHY4Ni4uaCG2GR/R/xhn85EjcDwotRUEoT6of LvtHoTYhYtNClvmWcbx4Srwa9AqsjC+p/4pjDTwfo3VigcdYaMn5nxt16gIMnijLl1tD dVfLzM17MZwFX7foYpd1VnRnl8BFGBqISUiaIgPYSbUDBdJr1yRasZ8r6a8HxvxSD6a6 tjZrqE4Z721gW8CcmWP1fLSzDZDSWc1FWIbnvEo94l7IYs5gpRYUIAqprX2sKv38eook PuLQ== X-Gm-Message-State: ALQs6tCGm93xCKk8bo5KYjxh+5X4Hkn6tcEqD/wZnkbpYlkftyo1hMpS KO1NL5vuYw6ZwmEAeEzZ7Kyr0g== X-Received: by 2002:adf:e843:: with SMTP id d3-v6mr12305788wrn.146.1525168965357; Tue, 01 May 2018 03:02:45 -0700 (PDT) Received: from mai ([37.169.202.92]) by smtp.gmail.com with ESMTPSA id y129sm8275419wmg.44.2018.05.01.03.02.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 03:02:44 -0700 (PDT) Date: Tue, 1 May 2018 12:02:42 +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 13/18] thermal: exynos: set trips in ascending order in exynos7_tmu_initialize() Message-ID: <20180501100242.GJ27619@mai> References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <1524743493-28113-14-git-send-email-b.zolnierkie@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1524743493-28113-14-git-send-email-b.zolnierkie@samsung.com> 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 Thu, Apr 26, 2018 at 01:51:28PM +0200, Bartlomiej Zolnierkiewicz wrote: > Set trips in ascending order in exynos7_tmu_initialize() (it should > make no difference in driver operation). This prepares the driver > code to moving trips setting from ->tmu_initialize method to > exynos_tmu_initialize(). > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > drivers/thermal/samsung/exynos_tmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > index 12b60e2..571511f 100644 > --- a/drivers/thermal/samsung/exynos_tmu.c > +++ b/drivers/thermal/samsung/exynos_tmu.c > @@ -618,7 +618,7 @@ static void exynos7_tmu_initialize(struct platform_device *pdev) > sanitize_temp_error(data, trim_info); > > /* Write temperature code for rising and falling threshold */ > - for (i = (of_thermal_get_ntrips(tz) - 1); i >= 0; i--) { > + for (i = 0; i < of_thermal_get_ntrips(tz); i++) { Capped with data->ntrip ? > tz->ops->get_trip_temp(tz, i, &temp); > temp /= MCELSIUS; > exynos7_tmu_set_trip_temp(data, i, temp); > -- > 1.9.1 > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog