Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5282638imm; Tue, 16 Oct 2018 07:59:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV637kI8DGpEpNqcNVGNRygk132tjAMJqezHcQxdPuDODp4BLUnG1YiHb7J/w7vf1IUsW8INW X-Received: by 2002:a17:902:8646:: with SMTP id y6-v6mr21781192plt.86.1539701966576; Tue, 16 Oct 2018 07:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539701966; cv=none; d=google.com; s=arc-20160816; b=1EFUOXPtH7rXB1qeos0DemLQCRiFmNa1JnxU1PjD4/auAaQfBVpa9WNIGb3JguYoAe e7GyFMOY8tzcXL4WJUiC/S3HthqSwQzVLXpDs0wFKuHU/kXb6YkpkRl2UNCiTDCN3GcU q9IqQKQySTpYisM+ZzCtPhHRdCj2RcltjkLr9OpEkH1UtmO69cex9w18NX+r9P2ZU47y 6dYsR/i+e6amFm86WPbaroX+aAc1vgrKKtPikbrIdrpHZSijdUoZeFYvf7DWy8+L67M1 dlY+FLgB7uginF0Q4C5gQbsDdPnuC51I7llnYPx4Jl+cvwNNNwbGwgtkDHG/7ZYZlqmo XdEg== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Utc5er4Zxe7vWuFo+3uwuF1I9+UvTJV8mbYc0op2+nw=; b=viso813frA4ZdofHekPg55cW+YA1vIfH+GtAOpbuHwXUfEGd8Xy5tBS/E6te6g/C6Y OYExlsw8UV+htbnNUj5tAtnx/aDZSl33dl3dtffH/JXjk9Nubz4xECzhuWDP6tK8R4+6 d5FYvRLNF9fKMrLQM3dGhBv94EImMfMVXgG+nJbXXR5HYYsWBfsXP/X01pb+lwDkVhIB AB5tCiKUxlCKBHyrIpgEdwCzMwqXPk0oxw7dA8QC37iqw0fo6cwTtxaWm+DDMp3cUsMK /6YMYLvajT2yBDaMTS40XCO4r06gF8sPOzRl+810pF4GFBjpLNMEPCYqwBUn0PUKRQjp /xhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lgzNCo3a; 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 e62-v6si15033365pfe.31.2018.10.16.07.59.10; Tue, 16 Oct 2018 07:59:26 -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=lgzNCo3a; 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 S1727146AbeJPWrb (ORCPT + 99 others); Tue, 16 Oct 2018 18:47:31 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39212 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbeJPWrb (ORCPT ); Tue, 16 Oct 2018 18:47:31 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181016145639euoutp0224774edee02cd761d54ba6966e91ce22~eHqEP1eso0414504145euoutp02c for ; Tue, 16 Oct 2018 14:56:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181016145639euoutp0224774edee02cd761d54ba6966e91ce22~eHqEP1eso0414504145euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539701799; bh=Utc5er4Zxe7vWuFo+3uwuF1I9+UvTJV8mbYc0op2+nw=; h=From:To:Cc:Subject:Date:References:From; b=lgzNCo3aJTAmdaCPqQNYEoJuCH0PXGSZvF5i1vrJQ2cgi9RCnoJHHj+ewikzoFzU0 4s9eqZf9xPKEAWLVJPFWF2W3dTZenJ9y2n4vvQoLrjNq7VHtZeAF1rIU5II6GmjOiO TLgddvby2beblnFlXMf69hu+9tGspvQb/BtDuNLE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181016145638eucas1p28141a2eb71c0b9d988c96bb13c36e83c~eHqDfnJ932133821338eucas1p2G; Tue, 16 Oct 2018 14:56:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 7A.21.04806.62CF5CB5; Tue, 16 Oct 2018 15:56:38 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20181016145637eucas1p2dfa78042b9fd4fd27af7cc8537b7f485~eHqCoEO-42133821338eucas1p2F; Tue, 16 Oct 2018 14:56:37 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20181016145637eusmtrp290f955e10bfa0cc113817d97336e4d67~eHqCY2pZI3061930619eusmtrp2E; Tue, 16 Oct 2018 14:56:37 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-6f-5bc5fc2614ff Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A8.AA.04128.52CF5CB5; Tue, 16 Oct 2018 15:56:37 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20181016145637eusmtip2853e0e9e2984f1cc262c80072ba0c3c2~eHqB3sHFu2833228332eusmtip2H; Tue, 16 Oct 2018 14:56:37 +0000 (GMT) From: Lukasz Luba To: 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 Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net, b.zolnierkie@samsung.com, Lukasz Luba Subject: [PATCH 00/11] thermal: add new flag irq-mode for trip point Date: Tue, 16 Oct 2018 16:56:11 +0200 X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSW0hTYRzvO2eX43B2Ot6+zIZODA2ahQYHupAgdJ66CmFmOvM4JZ224zSj aMvLNtERhSYaanmLIS3nsGlepm2tKZpazBR7iCzQyoemZOGlHbbq7Xf9/76HD0OJx9wwLFde RCvk0jwxT8DpffXrzYF9G/bUg+qOCLK73sglF60aQDa595LNtkku2fzOxSXnVeGk6ZMHPKps 45Bv+x/ySHeNDZDts9MIWTFo45OLH/W8E0Kqq6kLUH0NH/hU68ASQpkMOh614BrgUT1tt6lW /X0uNbIygFB6swFQbpPojOCi4GgWnZdbTCvijmcIcsZnYwungq7X2ecQFdjcWQX8MIgnwHpn P1IFBBiBPwHwebkaeMkqgDOfrT7HDWBjhYr7t2KsfcrxGp0AOq0u5F9lYczsIRjGwyXQYrjG 6kF4I4DuoVY+S1DcCeB8Zy/CngrEk+DvJQ2PxRw8GjoMP4F3QgTnJnUoW4B4Bx/ecU2grCHE i2Hf5grPG0qClu4KXyEQLjvMfC8Oh9t9zYgXM3BCa/Dlb0KN0+LLHIEvHdNc9qUoHguN/XFe ORG+WGGnMA8OgO+/72Jl1APv9T7wyUKorSS86Rhorp7yDYXAzq4633EKur/VclhM4GlQOzLG vwtEDf+3WgAwgFBayeTLaCZeTpdIGGk+o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j5+nJ0bnXmb/kkML/G7ofI8NXLeLdMrPq+fnNzkv1nuqvXttR uGbO4zv5yy/1f4n1nfDCRfzYxf5P23s/Gr1Irdixl0Mn/pn7ZzWv/W/WKrEUZyQaajEXFScC AN8UtZ6MAgAA Message-Id: <20181016145637eucas1p2dfa78042b9fd4fd27af7cc8537b7f485~eHqCoEO-42133821338eucas1p2F@eucas1p2.samsung.com> X-CMS-MailID: 20181016145637eucas1p2dfa78042b9fd4fd27af7cc8537b7f485 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181016145637eucas1p2dfa78042b9fd4fd27af7cc8537b7f485 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181016145637eucas1p2dfa78042b9fd4fd27af7cc8537b7f485 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch set adds new flag and mechanism in thermal trip point in DT. The current situation with 'passive' (passive cooling - DVFS) trip point is that it enables polling mode in thermal framework. If the device supports irqs fired when the desired temerature is met, thermal framwork should be notifed from driver's irq routine. This is sufficent and there is no need of polling. As a workaround, people declare trip point as 'active' (active cooling, i.e. fan) to bypass polling mode setup in thermal framework. With this patch set trip point 'passive' declared in DT with explicit flag: 'irq-mode;' will not register itself as polling mode. A good example is Exynos4 SoC family, where there is 4 HW supported trip points and there is a need of 6. The rest 2 are declared as 'passive' without 'irq-mode;' flag, thus polling needed. It does not break existing design for trip points which do not have 'irq-mode' flag - they will use polling. For consistency this flag should be added to all trip point types('active', 'passive', 'hot', 'critical') when need (meaning, when irq will notify thermal framework). Regards, Lukasz Luba Lukasz Luba (11): thermal: remove unused function parameter thermal: add irq-mode configuration for trip point thermal: add new sysfs file for irq-mode Doc: thermal: new irq-mode for trip point Doc: DT: thermal: new irq-mode for trip point DT: arm64: exynos: add support for thermal trip irq-mode DT: arm64: exynos7: add support for thermal trip irq-mode DT: arm: exynos4: add support for thermal trip irq-mode DT: arm: exynos: add support for thermal trip irq-mode DT: arm: exynos: add support for thermal trip irq-mode DT: arm: exynos: add support for thermal trip irq-mode .../devicetree/bindings/thermal/thermal.txt | 7 ++ Documentation/thermal/sysfs-api.txt | 9 ++ arch/arm/boot/dts/exynos4-cpu-thermal.dtsi | 10 +- arch/arm/boot/dts/exynos5410-odroidxu.dts | 10 +- arch/arm/boot/dts/exynos5420-trip-points.dtsi | 10 +- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 40 +++++--- arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi | 105 ++++++++++++++------- .../arm64/boot/dts/exynos/exynos7-trip-points.dtsi | 8 ++ drivers/thermal/of-thermal.c | 17 ++++ drivers/thermal/thermal_core.c | 16 ++-- drivers/thermal/thermal_sysfs.c | 53 ++++++++++- include/linux/thermal.h | 5 + 12 files changed, 226 insertions(+), 64 deletions(-) -- 2.7.4