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: 722018 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91513CA0ECA for ; Mon, 11 Sep 2023 21:16:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241517AbjIKVHJ (ORCPT ); Mon, 11 Sep 2023 17:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238049AbjIKNgP (ORCPT ); Mon, 11 Sep 2023 09:36:15 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E0CD1A2 for ; Mon, 11 Sep 2023 06:36:09 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230911133608euoutp01b0fbe6c177fd9e6ccb3f8d38886cdc0c~D26DJeWP82283022830euoutp01G for ; Mon, 11 Sep 2023 13:36:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230911133608euoutp01b0fbe6c177fd9e6ccb3f8d38886cdc0c~D26DJeWP82283022830euoutp01G 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 yyYlNSezLLVI3y6BK+Pf0gmsBUe5Ks48e83WwHiSo4uRk0NCwETiTOMS5i5GLg4hgRWMEodf n2KDcL4wSqxbcJ0RwvnMKNHxeQE7TMuyjUtZIRLLGSVeLrrMBOG0Mkns/XuHCaSKTcBA4sGb ZWAdIgKtjBIzm9RBipgFLjFL3L25lgUkISxgKvH/+SIwm0VAVeLw3KtADRwcvAI2Eu9bjSG2 yUs8v3UHbA6vgKDEyZlPwMqZgeLNW2czQ9S84JB4s7cewnaRWLZ4GxuELSzx6vgWqKtlJP7v nM8EYedLzNj8ngVklYRAhcTdg14QprXExzPMICazgKbE+l36EFFHiZuvDSBMPokbbwUh1vNJ TNo2nRkizCvR0SYEMVlV4vieSVBXSUs8abkNtdFDYvG9E6wgtpBArMSdtc+YJjAqzELy1Cwk T81COGEBI/MqRvHU0uLc9NRi47zUcr3ixNzi0rx0veT83E2MwAR2+t/xrzsYV7z6qHeIkYmD 8RCjBAezkghvyaG/KUK8KYmVValF+fFFpTmpxYcYpTlYlMR5tW1PJgsJpCeWpGanphakFsFk mTg4pRqYHDPnrgxedqFT5JvaKvbL3JI1cpft3j7Vy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hYrEnT2jPlx25ii 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: Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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(-) Reviewed-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski