From patchwork Wed Dec 14 15:19:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 33237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp285746wrn; Wed, 14 Dec 2022 07:21:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dfzbQ/L9eRfI4rxYRypdnnRMYELasKSiPd5lRJkFMTpZbUzyO3CA81mg1elFAkyIw4fuR X-Received: by 2002:a05:6402:370d:b0:45c:937d:25c8 with SMTP id ek13-20020a056402370d00b0045c937d25c8mr20444220edb.1.1671031277806; Wed, 14 Dec 2022 07:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671031277; cv=none; d=google.com; s=arc-20160816; b=PUNZDRsjrjgTpH8LaONVXEDm5D+gtOazPdyxJj9LTMonffLFRPWWTIp2ZmC22Z/33Q uIdEtPZIYNO61D3jqGztni5RKvsLMpMmnGBRnM2MwGRNVG6vG6fQrlLCte/9ZKo1kihR OEsB+EUkO91j4WxnsH/aFtc5Oxt3lomzJ30yj6zfbl67bdgxFeRq3s8s9egj1Ixi8yyB GgKK59zSxIRd9F4iy/ZtVwNBcR/O+3Caq1kJpl6/8vwHwIG2+ijHWWRhZ6oQyDI9js8P xCRdUpvrn62HyMlO7DJI3sb1S7NmZcMrd7E9t+kFysGpuxSKemtN8UWYGOvr0qHcXiIF Ztjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=/mbKCBo2UJJd6vmfSyM6UGB92s9H0LLOHg9t5nwtMIQ=; b=u9HBofvIrDZe0nf4S7Z1rvfIyUSNxBpsTAAhK45vzMaRQWW/9e4jFwfQ9IUQO504di 5s6fckhtk8I5I61Q595MZVV5SNCAyZqJSNcCKGYaq3/OYXDbZwoWHKrcvXyj6g0ZtKnC hDyWN5RbpPics/sCp79ULpJ1A9dT+VDYXIwzgYx6OPsbJyJqtvH0//UfZ0LA4pROeZFg b5JCpW8aYTXBo7ouVfcKjllo/l8ogM3oW4ozfMMTCHU6uycFR/z0M4R1LR47ArhEW7t4 Vo33QrTBT9k/cT0dQzYOJVhaJvNYTNDljRxWo20FzCwSZHEKht7JdDvAc4qv5Soof/D6 7agQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LNb4EXa+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a0564021e9600b0046c6e69565dsi14037770edf.259.2022.12.14.07.20.53; Wed, 14 Dec 2022 07:21:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LNb4EXa+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238577AbiLNPT3 (ORCPT + 99 others); Wed, 14 Dec 2022 10:19:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiLNPTZ (ORCPT ); Wed, 14 Dec 2022 10:19:25 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED181146C for ; Wed, 14 Dec 2022 07:19:24 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so10833255wmb.2 for ; Wed, 14 Dec 2022 07:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=/mbKCBo2UJJd6vmfSyM6UGB92s9H0LLOHg9t5nwtMIQ=; b=LNb4EXa+m3OftUmzbRJZDPQiS2P9iVz8Qbh5hVpJ/iBBkxEDwPFlCxxlHBPhlr10YB 6zFzXtfRxbdiTbtE6Lqp3cyDKfkVdiXxfdOdILo5Ec8tR1DenhO+u9GWnxw3++j5RKhJ o8WZzHcz91bl9zAXQ1rXABdPy4ey9rQS/wmYK3rTuKsC9DlJkpGiZWe3tb16csvsF9r0 dN1MUMMsY1nLaNINlhDEpz+v3leGbE4whzYA27TsuvXg3oQsxi6A+61owTKXuISM2ZTd +S7LcA22NGC3mMqa5F0jc77RChFtNanSt2KOYfM5W3ZcCtyV4HFR2Rx7iI6e91TgG2Qn aL2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=/mbKCBo2UJJd6vmfSyM6UGB92s9H0LLOHg9t5nwtMIQ=; b=xyiaQf8ULSk5x+cD5g9UnFQTgvnMkhTqk5+WB1e+pFQhf01jHxfJnmHyOzkSyCVKld 5WF0+6U5XYRS/a5go051vEXlgg1Dw3pAE5CwNJRX9wsOeOaLiHnzv7IOyAjwe9apPKWu fwexEro/lC6ziQDa7LzMP0zm/wRrXUp/hMYpOoi6FyQ1ymWvV5Jfcb9gvFkEWrcVVI63 ltk40yGuGmQr3w01iWWytPyzsbuujgsMA4Gufx5tRd7YJ382duhJuBin95tH7+0q4BsQ Y0osrS7Mz2Ow8up1fnVSa1kKj6hKIwVYDYglN7EmfE1PBAzJl25JdJIu2EqLJgHEJ/e5 TJTA== X-Gm-Message-State: ANoB5pl8GPFVQjQkmXZ+GbQIoW5FhjxGB4UTbfJBgs0OKz4Fnxh4ko89 qEnWfZTYoZ0/PTmpofTswUGY4Q== X-Received: by 2002:a05:600c:1d02:b0:3cf:6d9a:7b1f with SMTP id l2-20020a05600c1d0200b003cf6d9a7b1fmr19604174wms.32.1671031162432; Wed, 14 Dec 2022 07:19:22 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id x13-20020a5d60cd000000b00241e8d00b79sm3817849wrt.54.2022.12.14.07.19.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Dec 2022 07:19:21 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2022 16:19:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 From: Daniel Lezcano Subject: [GIT PULL][resend] thermal drivers for v6.2-rc1 To: "Rafael J. Wysocki" Cc: Daniel Lezcano , Luca Weiss , Neil Armstrong , Marcus Folkesson , Rob Herring , Keerthy , Ido Schimmel , Robert Marko , Christian Marangi , Marek Vasut , Daniel Golle , Johan Hovold , Alexander Stein , Linux Kernel Mailing List , Linux PM mailing list , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= Content-Language: en-US X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752203293139318566?= X-GMAIL-MSGID: =?utf-8?q?1752203293139318566?= Hi Rafael, please consider pulling the thermal changes for v6.2-rc1 (again). This PR contains the same changes as the last one but without the generic trip point rework where a problem appeared with the locks. When the series was submitted, the problem was not there but meanwhile my absence the commit 05eeee2b51b introduced a lock in the set_trip_temp call path. On the other side the lock was also taken by the generic trip point work series. That was not spotted before because these two changes were in different branches (thermal/linux-next and linux-pm/thermal) and the merge resulted in this lock conflict. I was surprised to see the deadlock issue as the series has been tested and was in the linux-next branch during a while. Understanding the lock issue helped to clarify what happened. Given it is not a problem to post pone the generic trip rework, it is more secure to drop the series from the pull request and make sure there is no another subtle changes happening with the locks. Please note I added a trivial change from Uwe Kleine-König removing an empty function [1]. Thanks -- Daniel [1] https://lore.kernel.org/r/20221212220217.3777176-1-u.kleine-koenig@pengutronix.de The following changes since commit 7d4b19ab6b89903fde8ad02f28a8943a4734e7b0: Merge Intel thermal control drivers changes for v6.2 (2022-12-02 19:39:07 +0100) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git tags/thermal-v6.2-rc1 for you to fetch changes up to 5011a110295d25418f5918a6af7bfcdb00dd4e34: thermal/drivers/imx_sc_thermal: Drop empty platform remove function (2022-12-14 15:27:30 +0100) ---------------------------------------------------------------- - Add the sm8450 QCom compatible string in the DT bindings (Luca Weiss) - Use devm_platform_get_and_ioremap_resource on the ST platform to group two calls into a single one (Minghao Chi) - Add the sm8550 QCom compatible string in the DT bindings (Neil Armstrong) - Use GENMASK instead of bitmaps and validate the temperature after reading it (Marcus Folkesson) - Convert generic-adc-thermal to DT schema (Rob Herring) - Fix the debug print message where the logic is inverted (Keerthy) - Fix memory leak on thermal_of_zone_register() failure (Ido Schimmel) - Add support for IPQ8074 in the tsens driver along with the DT bindings (Robert Marko) - Fix and rework the debugfs code in the tsens driver (Christian Marangi) - Add calibration and DT documentation for the imx8mm driver (Marek Vasut) - Add DT bindings and compatible for the Mediatek SoCs mt7981 and mt7983 (Daniel Golle) - Don't show an error message if it happens at probe time while it will be deferred on the QCom SPMI ADC driver (Johan Hovold) - Add the HWMon support on the imx8mm board (Alexander Stein) - Remove a pointless include in the power allocator governor (Christophe JAILLET) - Add interrupt DT bindings for QCom SoCs SC8280XP, SM6350 and SM8450 (Krzysztof Kozlowski) - Fix inaccurate warning message for the QCom tsens gen2 (Luca Weiss) - Demote error log of thermal zone register to debug on the tsens QCom driver (Manivannan Sadhasivam) - Consolidate the TI Bandgap driver regarding how is handled the efuse values and the errata handling (Bryan Brattlof) - Document the Renesas RZ/Five as compatible with RZ/G2UL in the DT bindings (Lad Prabhakar) - Fix the irq handler return value in the LMh driver (Bjorn Andersson) - Delete platform remove callback as it is empty (Uwe Kleine-König) ---------------------------------------------------------------- Alexander Stein (1): thermal/drivers/imx8mm: Add hwmon support Bjorn Andersson (1): thermal/drivers/qcom/lmh: Fix irq handler return value Bryan Brattlof (6): thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() function thermal/drivers/k3_j72xx_bandgap: Use bool for i2128 erratum flag thermal/drivers/k3_j72xx_bandgap: Remove fuse_base from structure thermal/drivers/k3_j72xx_bandgap: Map fuse_base only for erratum workaround dt-bindings: thermal: k3-j72xx: elaborate on binding description dt-bindings: thermal: k3-j72xx: conditionally require efuse reg range Christian Marangi (3): thermal/drivers/qcom/tsens: Init debugfs only with successful probe thermal/drivers/qcom/tsens: Fix wrong version id dbg_version_show thermal/drivers/qcom/tsens: Rework debugfs file structure Christophe JAILLET (1): thermal/core/power allocator: Remove a useless include Daniel Golle (1): dt-bindings: thermal: mediatek: add compatible string for MT7986 and MT7981 SoC Geert Uytterhoeven (1): thermal: ti-soc-thermal: Drop comma after SoC match table sentinel Ido Schimmel (1): thermal/of: Fix memory leak on thermal_of_zone_register() failure Johan Hovold (1): thermal: qcom-spmi-adc-tm5: suppress probe-deferral error message Keerthy (1): thermal/drivers/k3_j72xx_bandgap: Fix the debug print message Krzysztof Kozlowski (1): dt-bindings: thermal: qcom-tsens: narrow interrupts for SC8280XP, SM6350 and SM8450 Lad Prabhakar (1): dt-bindings: thermal: rzg2l-thermal: Document RZ/Five SoC Luca Weiss (2): dt-bindings: thermal: tsens: Add sm8450 compatible thermal/drivers/qcom/temp-alarm: Fix inaccurate warning for gen2 Manivannan Sadhasivam (1): thermal/drivers/qcom: Demote error log of thermal zone register to debug Marcus Folkesson (2): thermal/drivers/imx8mm_thermal: Use GENMASK() when appropriate thermal/drivers/imx8mm_thermal: Validate temperature range Marek Vasut (2): dt-bindings: thermal: imx8mm-thermal: Document optional nvmem-cells thermal/drivers/imx: Add support for loading calibration data from OCOTP Minghao Chi (1): thermal/drivers/st: Use devm_platform_get_and_ioremap_resource() Neil Armstrong (1): dt-bindings: thermal: qcom-tsens: Add compatible for sm8550 Rob Herring (1): dt-bindings: thermal: Convert generic-adc-thermal to DT schema Robert Marko (4): dt-bindings: thermal: tsens: Add ipq8074 compatible thermal/drivers/tsens: Add support for combined interrupt thermal/drivers/tsens: Allow configuring min and max trips thermal/drivers/tsens: Add IPQ8074 support Uwe Kleine-König (1): thermal/drivers/imx_sc_thermal: Drop empty platform remove function .../bindings/thermal/generic-adc-thermal.yaml | 84 ++++++++++ .../bindings/thermal/imx8mm-thermal.yaml | 7 + .../bindings/thermal/mediatek-thermal.txt | 2 + .../devicetree/bindings/thermal/qcom-tsens.yaml | 81 ++++++++-- .../devicetree/bindings/thermal/rzg2l-thermal.yaml | 2 +- .../bindings/thermal/thermal-generic-adc.txt | 95 ----------- .../bindings/thermal/ti,j72xx-thermal.yaml | 35 +++- drivers/thermal/gov_power_allocator.c | 1 - drivers/thermal/imx8mm_thermal.c | 180 ++++++++++++++++++++- drivers/thermal/imx_sc_thermal.c | 6 - drivers/thermal/k3_j72xx_bandgap.c | 67 ++++---- drivers/thermal/qcom/lmh.c | 2 +- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 8 +- drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 3 +- drivers/thermal/qcom/tsens-8960.c | 3 + drivers/thermal/qcom/tsens-v0_1.c | 3 + drivers/thermal/qcom/tsens-v1.c | 3 + drivers/thermal/qcom/tsens-v2.c | 20 +++ drivers/thermal/qcom/tsens.c | 68 +++++--- drivers/thermal/qcom/tsens.h | 8 +- drivers/thermal/st/stm_thermal.c | 4 +- drivers/thermal/thermal_of.c | 8 +- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +- 23 files changed, 506 insertions(+), 186 deletions(-) create mode 100644 Documentation/devicetree/bindings/thermal/generic-adc-thermal.yaml delete mode 100644 Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog