Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5167030imu; Tue, 13 Nov 2018 02:11:09 -0800 (PST) X-Google-Smtp-Source: AJdET5d2177NT7TAHFVk4tphtEw0m8C9a5j35iPR61CyDVqUo99sdHVjK/XzbXMbG8d43esb4Ngb X-Received: by 2002:a63:8b4b:: with SMTP id j72mr4153456pge.126.1542103869035; Tue, 13 Nov 2018 02:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542103869; cv=none; d=google.com; s=arc-20160816; b=Zx9SyXrt7mdycwtmPQsauLJIE2EXDM6KzjzRWO88xVF4zAcF7NdGln79utP9pWR0YB Y7GzcWzcM1JYy1bf+aE/p9Ixhkcg9U2cpZw4ODmArqSlH7dwWUT8G2wj9sEFJc85n4uu 6eKVhZx+5jY/O7Gnvrv9EALpkxathQj4IWYC9vfv2687bDXHfgSm3syinytd8y0RWGUQ lIZgAF8c53rMF5B4FYel5N5BxLdfN5mpKUj2p9ETlJY8q7qnwIP+UY54hoqHCZJ0zC3/ fr6XhXedVJHy4aEdMrtiMraTfqyva3wGV24Mzpm+MntkN8jgMjA6SOXSIZR/7fEx42tF XIvg== 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:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=iexbsrjHd1czc9/sC51m9w8dIqn1K2yIM6KmfEThm04=; b=jp9ebD8bIWdUsf8DJZc00yvx6HSo/Xmyr/ce9tnDuoeja6NIZGDMQfrZm64mscRMv5 OHfNi+kT/Vb7Bhp4deBl5iOL9UWb7a88uOc2VzN/tszrZhSL24ZIxmwAA/yAVz5IVoNU LIaPyTJoBwA4QrafFiBl8CtfHtv5Q6+X2RZI/1pQdq0QvhBNBsvmGzFigRXTDU3eXqHF 97hanEpfA164g43QLxO1LzIpzfPRv+V2eZ0eZ1FPc7OoejEcmESXqU0lYP0xmvzqFzjO TLJ654r8suaomdSLr3ryvnqXbKtgVBt4V4oj6WHDYNSWKgwJNII1jx7PVx00sDjaFZze sBpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=psfwZ+72; 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 h32-v6si20582635pld.437.2018.11.13.02.10.53; Tue, 13 Nov 2018 02:11:08 -0800 (PST) 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=psfwZ+72; 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 S1732028AbeKMUHv (ORCPT + 99 others); Tue, 13 Nov 2018 15:07:51 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44345 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731448AbeKMUHu (ORCPT ); Tue, 13 Nov 2018 15:07:50 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181113101027euoutp0201cf0c156730facbf74b1cc3d93e13b8~mp0Kol0Ws0094900949euoutp02R for ; Tue, 13 Nov 2018 10:10:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181113101027euoutp0201cf0c156730facbf74b1cc3d93e13b8~mp0Kol0Ws0094900949euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542103827; bh=iexbsrjHd1czc9/sC51m9w8dIqn1K2yIM6KmfEThm04=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=psfwZ+72cxxiihHumViTqlW6oJRFq+VMfKbPohNOFjgdEpI2euprEZIifsZgu2nsD jAUDXBMCK3w61IlFvtsBILj06flOZ/SBHFkyFJvzhGNYQoTD+82r5X/zSt/sAsUwJ3 jr4ZOUW9PDm+d3rL8s2X4+aCqLpyC8u2BYwapea8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181113101026eucas1p2f1e106c18550d0370e8b172f8f50b70f~mp0J7vVzQ1908819088eucas1p2i; Tue, 13 Nov 2018 10:10:26 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 4B.C4.04441.113AAEB5; Tue, 13 Nov 2018 10:10:26 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20181113101025eucas1p1977bc16f7dfdce661a1f9774d646635e~mp0JIDh4I1741517415eucas1p1r; Tue, 13 Nov 2018 10:10:25 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20181113101025eusmtrp10a252ab034aef14d0be6e282db289440~mp0I4-k5d2718627186eusmtrp1g; Tue, 13 Nov 2018 10:10:25 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-25-5beaa3116449 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 2C.2A.04128.113AAEB5; Tue, 13 Nov 2018 10:10:25 +0000 (GMT) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20181113101024eusmtip1393719ebb92dc200b303248574714459~mp0IQwyw00956409564eusmtip1F; Tue, 13 Nov 2018 10:10:24 +0000 (GMT) Subject: Re: [PATCH v2 06/11] arm64: dts: exynos5433: add support for thermal trip irq-mode To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net, =?UTF-8?Q?Bart=c5=82omiej_=c5=bbo=c5=82nierkiewicz?= , kgene@kernel.org, "linux-samsung-soc@vger.kernel.org" From: Lukasz Luba Message-ID: <616778d8-387f-dbc9-6523-289058b22577@partner.samsung.com> Date: Tue, 13 Nov 2018 11:10:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+85tZ9bsOC1ftBIW3YQ0yeCUFhURhyLK/rBoSK12UMtbO5qp UWZ4LVdkpQ5T02oxNaeZl2Gl0zIRnZpoRZGyQeUlwi3DQMl5jPzv97zf+z3v+3x8NC63kl50 ZEw8r4lRRSkoF6L+zbRls7x8VLmlPx2xNQXVJGtryURssX01W9LeQ7IlA4Mke9M6hrMWi1HC 1lrn5IOMhwT7zlREsfbcdsQWWF5i7KOhPoxNf9EuYW0jWmr3cq6yuBJxTbrPEq68+TvG1Rqy Ke7TYDPFPXt4hSvX5pGcts6AOHvtmiPSEy7Baj4q8gKv8d91yiWibLyfjMuGix901VgqapXn ICkNTCAMN9lQDnKh5cwTBDXjzylROBBcnxohRWFH0PCmn8hB9PyVpr6jYl2PoLctAxPFxJwo skicvu5MGBRc+4Q52YPZBE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YLU8Aq4SZz/9BisnkVAVeLKgS9gy0QFIiTOvlzHCFEjKHFy5hMW EJtTIFDiwavHjBDzzSTmbX7IDGGLS9x6Mp8JwpaX2P52DvMERqFZSNpnIWmZhaRlFpKWBYws qxhFUkuLc9Nzi430ihNzi0vz0vWS83M3MQLjfNuxn1t2MHa9Cz7EKMDBqMTDe2L6y2gh1sSy 4srcQ4wSHMxKIrw7TV5FC/GmJFZWpRblxxeV5qQWH2I0BXpuIrOUaHI+MAXllcQbmhqaW1ga mhubG5tZKInznjeojBISSE8sSc1OTS1ILYLpY+LglGpgZJqUo9h8btNhgyNhEW58Qod5C9JO 2kROTNO6vZ6RabbLPvmsNwdsCp5IV1+64bo37QEHs/DOnKL5n3oSVrsuqpkjufsMh8viA3ci zWX+8kcdqDr6eV/KBPPGJs8l75YKbNf1ylIqObK/K19d685TG4+0RxOnb9HUWftc8dWLJh61 3UWreD/8V2Ipzkg01GIuKk4EAKGmB+kJAwAA X-CMS-MailID: 20181113101025eucas1p1977bc16f7dfdce661a1f9774d646635e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181107171041eucas1p1a3cf91435b9071fd6e6f84101ebbcd9f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107171041eucas1p1a3cf91435b9071fd6e6f84101ebbcd9f References: <1541610593-28542-1-git-send-email-l.luba@partner.samsung.com> <1541610593-28542-7-git-send-email-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On 11/12/18 10:00 AM, Krzysztof Kozlowski wrote: > Thanks Lukasz for patches. I like your work! > > I have few more comments which will probably apply for all the DTS commits. > > On Wed, 7 Nov 2018 at 18:10, Lukasz Luba wrote: >> >> This patch adds support for new flag which indicates > > This patch does not add support. Support for flag was added in your > first drivers/thermal patches in this set. This patch adds new flag. > (and does something more, so read on) Got it, will change the commit message. > >> that trip point triggers IRQ when temperature is met. >> Exynos5433 supports 8 trip point which will trigger IRQ. > > /8 trip point/8 trip points/ > >> Above that number other trip points should be registered >> without 'irq-mode' flag. > > Please fix the line-wrap. OK > >> >> Cc: Kukjin Kim >> Cc: Krzysztof Kozlowski >> Cc: devicetree@vger.kernel.org >> Cc: linux-arm-kernel@lists.infradead.org >> Cc: linux-samsung-soc@vger.kernel.org >> Signed-off-by: Lukasz Luba >> --- >> arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi | 105 ++++++++++++++++--------- >> 1 file changed, 70 insertions(+), 35 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi >> index fe3a0b1..c4330f6 100644 >> --- a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi >> +++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi >> @@ -17,37 +17,44 @@ thermal-zones { >> atlas0_alert_0: atlas0-alert-0 { >> temperature = <65000>; /* millicelsius */ >> hysteresis = <1000>; /* millicelsius */ >> - type = "active"; >> + type = "passive"; > > This change is not explained in commit msg. > > Basically you are doing here two things (related to each other). You > clearly define which trip points are IRQ-type and you correct the type > of trip point. Active is incorrect. This second thing is missing in > your commit msg and I believe it is main reason behind this patch. You > should focus then on this reason - start from it. Subject could be > like "Use proper passive type for thermal trip points". > > Without this explanation I don't see the strong reason behind that > patch. IOW, everything was working fine before... so why adding this > new flag? Or maybe something was not fine... and then it is real > reason why you are sending the patch. Usually commit message should > answer to the most important question "WHY". Now, it explains > "WHAT"... but I can see it from the source code. However from the code > it is not easy to guess WHY. OK, I will add the explanation 'why' similar to description from the cover-letter to all the patches which add this flag in DT files. > > Best regards, > Krzysztof > > Thank you for the review. Regards, Lukasz