From patchwork Mon Sep 11 13:34:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Majewski X-Patchwork-Id: 13379350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1332EE57DF for ; Mon, 11 Sep 2023 13:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=s9vb7DXIDrjY9omzM4xmxGdG5+guKSzbYTYWJcSa5nY=; b=JvFOgv3CMnBdpR LuSdcmhW8dYX11IhjwpMsUMBWcy35vbf4gh/+e9zKO+YWgHUZkJ7vFZNVr/i3/kicWK5iJJDXPhUM AjsMKXiinWkxPYeLHtDccMWDcBaBwFNb/SpeJxjbPBDyQZgQMQWXwWAZ5x1MAS5eWmzfPbLGr7kTO nw72XxELlCmf+n3wS3GXe84C2+9cXsW3hHDiWMNUIENMloWjPLVKcdlnV1VCSKshoOK5FQbBvQ9JI uEhmIcs6NijCS4NbBhb3jUS0GWCbMe9aZXQdovkksjH7p1s94FSR0zN5cnf8JcQYHOzFarWuFFNea qEiGjSVt66jdNeStmg5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qfh5J-000cWc-0Y; Mon, 11 Sep 2023 13:36:13 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qfh5G-000cWC-0L for linux-arm-kernel@lists.infradead.org; Mon, 11 Sep 2023 13:36:11 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230911133608euoutp02e14b0cf268d3a73e0e59eb2933f8cc8e~D26DJYImu1631916319euoutp02I for ; Mon, 11 Sep 2023 13:36:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230911133608euoutp02e14b0cf268d3a73e0e59eb2933f8cc8e~D26DJYImu1631916319euoutp02I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694439368; bh=HFblmEq6Wu63c4OaZSLSXquWsoLJXCWOSNsbX81BJqU=; h=From:To:Cc:Subject:Date:References:From; b=bzm47R6b9wZSa9afhKxFaoh2ILCa7onNY9B/wIhJvkLQ2ZxS3iLdHdM1zJoAVyRJI 7l8EzPZjwQiapaHmH2T8x9014wma/nT/Sp13KxjXBmPQ2K1jawDc47QtjAwLzYb+cj lZJM2J6xhUIZwfZrEzetntj2oySX/zCiqpbT75zI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230911133608eucas1p28cfd68d14697b278271c55eedaddd34f~D26Cx_Fel1713017130eucas1p21; Mon, 11 Sep 2023 13:36:08 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 16.03.37758.7C71FF46; Mon, 11 Sep 2023 14:36:07 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230911133607eucas1p2c9a5b6c3bd785a5d03d78a1db872b188~D26CbkvI_0333903339eucas1p2_; Mon, 11 Sep 2023 13:36:07 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230911133607eusmtrp21ce60ea977e1c47b41aedb48e3f37fe3~D26CZ3LD70862108621eusmtrp2M; Mon, 11 Sep 2023 13:36:07 +0000 (GMT) X-AuditID: cbfec7f5-7ffff7000002937e-48-64ff17c79574 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 67.7A.14344.7C71FF46; Mon, 11 Sep 2023 14:36:07 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230911133606eusmtip22d0161ac2c9c2e907977814529c6feb2~D26BjiyJQ0797807978eusmtip2a; Mon, 11 Sep 2023 13:36:06 +0000 (GMT) From: Mateusz Majewski To: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Mateusz Majewski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Alim Akhtar , Liam Girdwood , Mark Brown , Marek Szyprowski Subject: [PATCH v2 0/7] Improve Exynos thermal driver Date: Mon, 11 Sep 2023 15:34:24 +0200 Message-ID: <20230911133435.14061-1-m.majewski2@samsung.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDKsWRmVeSWpSXmKPExsWy7djPc7rHxf+nGKxYYmPxYN42NovD8yss pj58wmbxfct1Jot5n2Ut9r7eym7x7UoHk8Wmx9dYLS7vmsNm8bn3CKPFjPP7mCwmHpvMbLH2 yF12i7lfpjJbPHnYx+bA77Fz1l12j8V7XjJ5bFrVyeZx59oeNo/NS+o9+rasYvT4vEkugD2K yyYlN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7eym7x7UoHk8Wmx9dYLS7vmsNm8bn3CKPFjPP7mCwmHpvMbLH2 yF12i7lfpjJbPHnYx+bA77Fz1l12j8V7XjJ5bFrVyeZx59oeNo/NS+o9+rasYvT4vEkugD1K z6Yov7QkVSEjv7jEVina0MJIz9DSQs/IxFLP0Ng81srIVEnfziYlNSezLLVI3y5BL+Pf0gms BUe5Ks48e83WwHiSo4uRk0NCwERi2calrF2MXBxCAksZJZbP3MkKkZCWOPxlCjuELSzx51oX G0RRM5PErV/vwBJsAgYSD94sYwdJiAh0Mkp0bT7HBJJgFrjFLHH/tRaILSxgKvH/+SIWEJtF QFXi8NyrQA0cHLwCNhLvW40hFshLPL91B2wmr4CgxMmZT1ggxshLNG+dzTyBkW8WktQsJKkF jEyrGEVSS4tz03OLjfSKE3OLS/PS9ZLzczcxAmNo27GfW3Ywrnz1Ue8QIxMH4yFGCQ5mJRHe kkN/U4R4UxIrq1KL8uOLSnNSiw8xmgKdN5FZSjQ5HxjFeSXxhmYGpoYmZpYGppZmxkrivJ4F HYlCAumJJanZqakFqUUwfUwcnFINTL3fUq7M3PyefcIHadW55udmvhZ0uhYrEnT2jPlx25ii r3UK29/fZdpu47LJNv4VB3fbi61zxCIWVIT2B9bH3O0Wl7J7lf5VWC1m+cJVPz8/jdzg/PJi X9OJ6LTLR3ze7XOqij6o+uxctJHEKqtpM+4dOvv+ofnfU2Hyv1JijM3ZWSYunfCTlzP4tGJg 6aoG87ao/8+W73RvLXkgopLtwHF4xZltSbnLIqtvzsvztJZTclx82n/LntiiWmvVxx99/dLF A1NPhDhIHs4S4Nv9RWv9ghcqamKyfqs+PKhbq/uu9cRKbq6un31pF/cutt9XoM0/d2uPxmxz uz+T89tYZ61X9tgcUX6JVU1lj6DbUiWW4oxEQy3mouJEAEeqre0qAwAA X-CMS-MailID: 20230911133607eucas1p2c9a5b6c3bd785a5d03d78a1db872b188 X-Msg-Generator: CA X-RootMTR: 20230911133607eucas1p2c9a5b6c3bd785a5d03d78a1db872b188 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230911133607eucas1p2c9a5b6c3bd785a5d03d78a1db872b188 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230911_063610_522883_A2F490A5 X-CRM114-Status: GOOD ( 12.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This work improves Exynos thermal driver in various ways. This is related to the discussion in https://lore.kernel.org/all/97201878-3bb8-eac5-7fac-a690322ac43a@linaro.org/ The primary issue being fixed is a lockdep warning, which is fixed by the thermal: exynos: use set_trips patch. We also simplify the code in general. Changelog: v2: - Added missing field descriptions - Removed an unnecessary field description - Removed the commits that made clock management more fine-grained (need more discussion), and adapted the new code to manage clocks - Removed the devicetree changes (will be uploaded separately), changing the recipient list accordingly - Improved formatting of the devm_request_threaded_irq call Mateusz Majewski (7): thermal: exynos: remove an unnecessary field description thermal: exynos: drop id field thermal: exynos: switch from workqueue-driven interrupt handling to threaded interrupts thermal: exynos: simplify regulator (de)initialization thermal: exynos: stop using the threshold mechanism on Exynos 4210 thermal: exynos: split initialization of TMU and the thermal zone thermal: exynos: use set_trips drivers/thermal/samsung/exynos_tmu.c | 525 ++++++++++++++------------- 1 file changed, 272 insertions(+), 253 deletions(-)