Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3479162pxj; Mon, 7 Jun 2021 11:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo0gn9LHTmfr2v4H6AOEtgLPwcu15p8liC3OUCu2FgVfvEVzlPvFwjfc3TZqVUbV6TmyZI X-Received: by 2002:a50:ff13:: with SMTP id a19mr21416120edu.300.1623091113632; Mon, 07 Jun 2021 11:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623091113; cv=none; d=google.com; s=arc-20160816; b=bxN9FkfiYrz5u+8xw5rNXQd0jxsIn6QDqu840pqUoiU22GAohaLvqyt0jgW9alUR8e C3TdDY6pOKE4mORNqrdAWkQb2UTg0tQz9K/c4kuB5OrVwVVzliNFXsbumQe8p64K9sw7 qts42ytJMCA8idUpzYGlfxVgZTdITxl4rr3h32r030dPy2P7I5Zg0EX44lbXYDy3Hgnj H9zNRoIgt7ieHpf5g7tT93zvkWkiwQV47Ee7uDxdlPfVHPnYpMOxhVevgLZM4uk+L2RC SmL0qLHwtC225JCnFq7uDSDK/rSt8gdkU1thJxwABFzwMJj3H6LnODu4c/EBhdloLxlu NLDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=cM28UElXAKMj55wOX+TgRiK7apXa+kUjsxN06C0sOdU=; b=xiIXGPXTmIDSYmhRJRJY9mv2O5aEYTdSZIzeuDtJKeHKmlhvdazpDxn8jLc/4x3yLT qFm3+aKRbrK4MH3ikagXxb7RwJOQKR2GLNnfyZKEVKAaw7EkI7JvHgxTp/uww1WAZGGh j/hIxo9GqwplrdEREVk7jNO6H2zi4Ei9yOaXcxZHgmZzFqcA/Dh+IoMRrqYxtCZk/zf4 N3xoP3UWe+/jldncX11HI8fPNkHwYLdXqNVdcLxSAsyJcKJ8/2eIhdC54/00qU3EwASv l3VW/7kdVd0SEGCu0PgJ9XGRWxd5vdc3ue8SJaWSRW08Gb64B6RJLGmYdvKJ2OlCr2eI sLFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=TiHYVZPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si10873865eju.51.2021.06.07.11.38.10; Mon, 07 Jun 2021 11:38:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=TiHYVZPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbhFGSgo (ORCPT + 99 others); Mon, 7 Jun 2021 14:36:44 -0400 Received: from mout.gmx.net ([212.227.17.20]:33103 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbhFGSgn (ORCPT ); Mon, 7 Jun 2021 14:36:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623090873; bh=veiWrZ68/aRMVKyuCZcb9fLCipe0nVzpbd5nvowzwto=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=TiHYVZPBlxYwHuVwDkOkLhNiD+oSkKmlFe9Rub6y82Im0FhEu5jpsZckZF7yM96dD VVUhOxPtUEOVn+m1zPR6t8Tzbgr15rPEFyx+aC+sCy8BJ860x9DGBNb2hUriuXARpq 91/RROpwDpUgsfZtTVD+K4pfHepexquY1OPPN/4Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.152.109] ([217.61.152.109]) by web-mail.gmx.net (3c-app-gmx-bs17.server.lan [172.19.170.69]) (via HTTP); Mon, 7 Jun 2021 20:34:33 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Frank Wunderlich Cc: linux-mediatek@lists.infradead.org, Daniel Lezcano , Amit Kucheria , Matthias Brugger , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Aw: [PATCH v3] thermal: mediatek: add sensors-support Content-Type: text/plain; charset=UTF-8 Date: Mon, 7 Jun 2021 20:34:33 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20210420172308.134685-1-linux@fw-web.de> References: <20210420172308.134685-1-linux@fw-web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:ip0nyvLzh2YX44Uhf9v4yvoEe2mw7J7QthU4ZFFsIRct1zSudRF6b8ECYw5mNaEH7okJ/ z6Aw7K+oSZKQJ395RKhHpgLBd+9eGpE57z8+vzav1WvG0oLC1uIeFL9yXzoi3uKJOwhh08K5qdgg fv68On+lnP15Sg83+pVQW/B6V90n4c45x76Uj2s3JUpv8GUgv60GXEtWtW+vEtkfRWZwUpjfXKtR 6X6jE7uIlR8vUUWuyFh28oitByaAHEwCbACBsWZnCrCz8a5bC8onxKMvejxpLPeLzaShU4k5TxX9 sM= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:le5utTWPOeM=:0ESx69M38a2u70tlVpp4p3 cPC0x2W3F2PeIim3TIOx7NXpKt0FouzXxFLZP/apENdqQC0e05iMty/O0LcqPFcxBmvmjWrHI xzLgYIUU0n9OB1PeaPuucDEpnSjsmBJkKEl1Fpcrcfk6Ps1tuWWo7bTJ9iHbAfgtgMpszWJcx 4IOqlDq4/1DE4Ia6Gem2oaC4Lsu3baJDXw6vNr9enB/daksBvprPLb6UN/srjIR2/4GrzlGJn Ptmev0EWGNwqE7CngUgovjsUSLeUUtL9g1ARPqMeuS/iHjjtq1CyCm9rp6l9n0gkJ+SwAFMSN rn9SgnSTu2j3clYGEGx292yM3U1suyqSMKaxIvL5J0/Vnv5HJ3fWlJ54AHCpRPrtp6uM0Cjwp OkqvxTYwJ+Jpx0l8aied93NLgG7ZmzQIOnmrfjqjtjw01XgvI96OHZBWklloVppWZVOeSWt1p TuOIREVCe+JzJ7tK6/qRbqhoVJqQnAFoPrREt5bgaGxIrmNAysaIyBTbs/6AWvv26hwZBBWaU ei79NFnD/ZbOutVKXt8yKkWuTLLRajEewG1ThAG2BtUbNA+qfbK92tW1BxVdBN+LTNMXgNGbo q3OVMIIWINyHemDUpKgHh4M7YLRJ7kt5bU/y3Tr3Dv546vliTkhwfRHPabAJlEFiFOgbctLHZ am+L5usw8ZDwun/VjOoIPBs/4+WVpEUVEEMlbYO4xdtvJKtmioe7G0TMdXuWuO2ge6KytcyR4 MxuNn7WGLYHX2y/78ORbb5yY9cia5GbcNDTPwwlrJZ3woHzcy7HguyWNHyqTLyWHrReli9ouf ykAlyTuFoNA+PGNYdB5/5r7EDRW6FStavENNM7gFpyeCVV7UAc= Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, just a gentle ping ;) regards Frank > Gesendet: Dienstag, 20. April 2021 um 19:23 Uhr > Von: "Frank Wunderlich" > An: linux-mediatek@lists.infradead.org > Cc: "Frank Wunderlich" , "Daniel Lezcano" , "Amit Kucheria" , "Matthias Brug= ger" , linux-pm@vger.kernel.org, linux-arm-kernel@= lists.infradead.org, linux-kernel@vger.kernel.org > Betreff: [PATCH v3] thermal: mediatek: add sensors-support > > From: Frank Wunderlich > > add HWMON-support to mediateks thermal driver to allow lm-sensors > userspace tools read soc temperature > > Signed-off-by: Frank Wunderlich > --- > v3: drop no_hwmon - now really, sorry > v2: drop ifdef and used devm_thermal_add_hwmon_sysfs > --- > drivers/thermal/mtk_thermal.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal= .c > index 149c6d7fd5a0..85964988684b 100644 > --- a/drivers/thermal/mtk_thermal.c > +++ b/drivers/thermal/mtk_thermal.c > @@ -23,6 +23,8 @@ > #include > #include > > +#include "thermal_hwmon.h" > + > /* AUXADC Registers */ > #define AUXADC_CON1_SET_V 0x008 > #define AUXADC_CON1_CLR_V 0x00c > @@ -1087,6 +1089,10 @@ static int mtk_thermal_probe(struct platform_devi= ce *pdev) > goto err_disable_clk_peri_therm; > } > > + ret =3D devm_thermal_add_hwmon_sysfs(tzdev); > + if (ret) > + dev_err(&pdev->dev, "error in thermal_add_hwmon_sysfs"); > + > return 0; > > err_disable_clk_peri_therm: > -- > 2.25.1 > >