Received: by 10.192.165.148 with SMTP id m20csp421916imm; Wed, 2 May 2018 02:39:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoeZtTw9xPgOExNUn3na+++w5GJqFpoL1fjuUGQuemWPPpMi4MljCBDxDBWn+qHHNS0/XtT X-Received: by 2002:a65:5a07:: with SMTP id y7-v6mr15475232pgs.15.1525253980435; Wed, 02 May 2018 02:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525253980; cv=none; d=google.com; s=arc-20160816; b=IFl40PUZpQMnM+9Vsxyh9jraQP8UJJX7EYqioOuezh4xq0Uo3GD9iKpz6SvLoyWIqV EpJ07wdD4epBsjtJJ+nsBU0MOaQeuZ0Qem40Vyx8ggC+9R+rRlc88E3WsFshkn+G72/d WfdMAmd7f+G7lUyWBYPtthod6OgTCkgnb4warVTjEBUxs4lKTzLnE3e/Cyfvy1X+W+1M Pj+u68estLzXRdfzrCHIBRF70v2REXyM7whVPqxwT+59PC9taHq1fxX8CoYZFmnEaLRu ecXMLF5NNb/XCRDounrTIkncjsVYCFrbbv+KsXnnt6HASm0zf0bqM4PJa9GCIj30+V7U VACw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=nGpX5wW1FYrDLkjD6NNwb9Cj3B0MbI9fsU5pY/FLAvI=; b=EaslI5seeZm1Zu8DP4OgEkgUsE0PkUJ/GuHb3A/nveq+wKeu9CR3reh+D5P/E8/9KJ Sr+J+vBfRUKpxH+iBTrRxEI8v5pjwi9dxnQB9d2f0kWIPK3UvyrSonU6unEcieIepuDG Jkco0T+Ag4CaHVFI7txxjKaw04vxG169mi+0CqGAQ0cwSbYbjgrR9QOwSaxaOnPVb+xj KoRjkOZ+5WKnhAti2KnhDgdxMQJCYwazoMr3kjVHCMYyTxjGK6d1Ru3qmABJq1lyqyUn alUJNTi9iCyXv4GSuGdwkGD0xlvEYyOTHxVdpBrTZFwDBAcItkMfaMJwx0vaPd/ZNN6R XVbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dn4dTGMb; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9-v6si9208589pgc.370.2018.05.02.02.39.25; Wed, 02 May 2018 02:39:40 -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=@samsung.com header.s=mail20170921 header.b=dn4dTGMb; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbeEBJhS (ORCPT + 99 others); Wed, 2 May 2018 05:37:18 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:46394 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbeEBJhO (ORCPT ); Wed, 2 May 2018 05:37:14 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180502093711euoutp02504abb8144170a24e29f16f4b1e3d4ce~qykdpdx5H1521415214euoutp02v; Wed, 2 May 2018 09:37:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180502093711euoutp02504abb8144170a24e29f16f4b1e3d4ce~qykdpdx5H1521415214euoutp02v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1525253831; bh=nGpX5wW1FYrDLkjD6NNwb9Cj3B0MbI9fsU5pY/FLAvI=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=dn4dTGMbRWG+y0ovFqNcY01n54ZT6Ih4cRX84elZIM2FHADktAgExbxnO6GI558oJ 8yPyRgCLBrorYL6lYv+Jn9sC4x9/VMZ3eleq9qWrTwGA8OdP55dh1cZF59BOJN9CPy gVhjp4HS/NrkLpq3JNhS9aa/KaLO9Cc2gztV6vtE= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180502093710eucas1p278c89c51e13085a42b0e442bdbb1ff21~qykcpAihF1445714457eucas1p22; Wed, 2 May 2018 09:37:10 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id BD.37.17380.6C689EA5; Wed, 2 May 2018 10:37:10 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180502093709eucas1p177dd30efffed16e763fcad10686af159~qykbOd4880648306483eucas1p1b; Wed, 2 May 2018 09:37:09 +0000 (GMT) X-AuditID: cbfec7f4-6f9ff700000043e4-18-5ae986c64871 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BF.8D.04183.5C689EA5; Wed, 2 May 2018 10:37:09 +0100 (BST) Received: from amdc3058.localnet ([106.120.53.102]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P8300JEWHDXWT50@eusync4.samsung.com>; Wed, 02 May 2018 10:37:09 +0100 (BST) From: Bartlomiej Zolnierkiewicz To: Daniel Lezcano 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() Date: Wed, 02 May 2018 11:37:08 +0200 Message-id: <3681690.4QzPMdFsyU@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <20180501100242.GJ27619@mai> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAIsWRmVeSWpSXmKPExsWy7djPc7rH2l5GGbz5xmkx77Osxfwr11gt Lu+aw2bxufcIo8WM8/uYLJ487GNzYPPYOesuu8fiPS+ZPO5c28Pm8XmTXABLFJdNSmpOZllq kb5dAldG3xW5gvfcFeu/9LE0MN7i7GLk5JAQMJHomjqbrYuRi0NIYAWjxLx/e6Ccz4wSzYva WWCqzk+8yghiCwksY5RYtSQVoug3o8SMXxvBitgErCQmtq8CKxIR0JNofN/GBFLELLCKUaL/ 0zsmkISwQJrEnP8H2UFsFgFVibZf/5m7GDk4eAU0JdadCgIJiwp4SWzZ1w5WzgkUPnB1DSuI zSsgKPFj8j2wXcwC8hL79k9lhbB1JM4eW8cIsktCYA2bxOO9v6CudpHY2n8GyhaWeHV8CzuE LSNxeXI3C0RDM6PEtx17mCESExgl9qwXgrCtJQ4fvwi1gU9i0rbpYIdKCPBKdLRBlXhILG05 wgIRdpRouscDD5SN+9YwTmCUnYXk7llI7p6F5O4FjMyrGMVTS4tz01OLjfJSy/WKE3OLS/PS 9ZLzczcxAtPB6X/Hv+xg3PUn6RCjAAejEg+vQd6LKCHWxLLiytxDjBIczEoivCs7nkUJ8aYk VlalFuXHF5XmpBYfYpTmYFES543TqIsSEkhPLEnNTk0tSC2CyTJxcEo1MPa/s/xZUPAl7323 xGlJRZGuS4Yc0xZJiPgvWFoVnulW/2yn/grRy113Atq5nuyWWf5k1cvemFij77xshYHGYatd g+NXWEddWig989j1T7wntn3QYXuzwbrvdZ+AbVzK+SdyCqd4/ywLerrmW+I8kfVe/13/TZWt 9K0/t6lhoWLJTqGAKXvvtCuxFGckGmoxFxUnAgCdcV8aAwMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xa7pH215GGRw8w2cx77Osxfwr11gt Lu+aw2bxufcIo8WM8/uYLJ487GNzYPPYOesuu8fiPS+ZPO5c28Pm8XmTXABLFJdNSmpOZllq kb5dAldG3xW5gvfcFeu/9LE0MN7i7GLk5JAQMJE4P/EqI4gtJLCEUeJ2a1QXIxeQ/ZdR4tjJ 32AJNgEriYntq8BsEQE9icb3bUwgRcwCqxglVrb2MoMkhAXSJOb8P8gOYrMIqEq0/foPFOfg 4BXQlFh3KggkLCrgJbFlXzsTiM0JFD5wdQ0rxLLljBKbf99gA0nwCghK/Jh8jwXEZhaQl9i3 fyorhK0lsX7ncaYJjPyzkJTNQlI2C0nZAkbmVYwiqaXFuem5xUZ6xYm5xaV56XrJ+bmbGIFB u+3Yzy07GLveBR9iFOBgVOLhNch7ESXEmlhWXJl7iFGCg1lJhHdlx7MoId6UxMqq1KL8+KLS nNTiQ4zSHCxK4rznDSqjhATSE0tSs1NTC1KLYLJMHJxSDYzTnb7O2lbLuP/JtW06zb3f54oe U9hYPDf60Y7cLD+Rirl611/tkldsFPPJ2VYq/TNi3nHxZyt0LP2jCkvORvNscljj4DY5LfyE 8ubr9fEM5/888LvQI/W4UH9TzarawOOBmh51R5k1LnPMWtjdd+HUocI1szKzNv0U1Z56xemF yJyQDw3L0i2UWIozEg21mIuKEwHv0KZOVgIAAA== X-CMS-MailID: 20180502093709eucas1p177dd30efffed16e763fcad10686af159 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180502093709eucas1p177dd30efffed16e763fcad10686af159 X-RootMTR: 20180502093709eucas1p177dd30efffed16e763fcad10686af159 References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <1524743493-28113-14-git-send-email-b.zolnierkie@samsung.com> <20180501100242.GJ27619@mai> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, May 01, 2018 12:02:42 PM Daniel Lezcano wrote: > 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 ? No need to, the code in question is removed in patch #14 (also Exynos7 DTS doesn't define more trip points than data->ntrip). > > tz->ops->get_trip_temp(tz, i, &temp); > > temp /= MCELSIUS; > > exynos7_tmu_set_trip_temp(data, i, temp); Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics