From mboxrd@z Thu Jan 1 00:00:00 1970 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 92D9FC4332F for ; Mon, 28 Nov 2022 08:44:27 +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:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=Xj+MT9yVrwyQ128xoxFc9s04eNtBMrZgxzHAD8wYnRc=; b=M4hrTtSehBivz6 /+C+6vi60qgZ12lPzqY2vrl4nF8GnDpUjS/Giou/ZGk5BUvJJ6/WQaauZZmPomspS0ne/+7ZMec4T fOE69jEFRbW0wfzqgxvWe2ZvPRVA+NCQZX2fyDZINDj0h3EPDgfxW2LwOL5adrouQrzeN3hvmIW3j wtYTa/CEtxTrzypT4xPmxDUU5r5O8uzZjepWMmqZE0iNVIpSz00LQEp///Bze2ucjFvq/IqRl7AMX bHlZLZGkUotJtkSJZ1tdxlEmUtMRN3F17pYk4OSO9D6sWKplrSi902Jqd0RuEtvdsHb6HIJVK1TB4 DRYemMOcYDm+uyODNbtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozZjg-000L2m-AD; Mon, 28 Nov 2022 08:43:32 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozZjM-000KtT-26 for linux-arm-kernel@lists.infradead.org; Mon, 28 Nov 2022 08:43:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1669624992; x=1701160992; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aPqs6bUfvCCU3X46JRSYAS78DbNztu8LeR89gALA0kc=; b=b55hjGmtbIu4aOlKrFPaNZ0bTUwiqetThdwF0v+39LBKLl1OVt7mzfer lI9dwIa4XcCrVs9Nrviuzt8oPOnfIeTxGhi9aqyYDsy62mwJp8Y5OCi1Q HJnhDJpDaqlMbK+2EupB+GP8/5IgN1kmHjPQii851Zpq8Vseeymh2ThFG k+fzt4DoFNCYUe9mhciMjaH2H/nCVXdTAxZ1ZSArrAKdtKxbOGK9aFSha Sr6nJAdPInGWtlvoFvTg4cxBRgVv/4db2K+/oIek+0ujqrR2ljO7nBcK/ xXkPUXnKO57irynZ9J8N1priYjiQT9vB3OR/3J+9gHDcEcPFYu/znQFsG w==; X-IronPort-AV: E=Sophos;i="5.96,199,1665439200"; d="scan'208";a="27607862" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 28 Nov 2022 09:43:10 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 28 Nov 2022 09:43:10 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 28 Nov 2022 09:43:10 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1669624990; x=1701160990; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aPqs6bUfvCCU3X46JRSYAS78DbNztu8LeR89gALA0kc=; b=A8Gr/PO2+o4lavuFVLN0XGc4BiovTdIU/cQsRB6Zw8HSPAnSIaKX9wZR oG6FlRCohlzyScrk2zpdqh5+28GkQK+x6Z74vAbUmap38vnUe0FQZSAcb haevfAvFCdswi0X7dS5RhZ6F94HLJU3KPgXCvZbm9fJ8ItAzX5ojTgrog 8aFXhTryP9mTkLJEdLRTpjswXvQazznkOFHoG+0QW3PIS2Vc7SD/ioUd3 iRSoIkKN1Jcd34xYj1sV4EjsFP5dDe/Gh2pvhoD/7o64OG7xwmgPOwLCX gartW5kkUh7f9RhR+Ds4lYu257Zki5W9E5G5gygyKB8/NYU3jhkiP2laq g==; X-IronPort-AV: E=Sophos;i="5.96,199,1665439200"; d="scan'208";a="27607861" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 28 Nov 2022 09:43:10 +0100 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 11295280056; Mon, 28 Nov 2022 09:43:10 +0100 (CET) From: Alexander Stein To: "Rafael J . Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/1] thermal: imx8mm: Add hwmon support Date: Mon, 28 Nov 2022 09:43:11 +0100 Message-ID: <5883255.lOV4Wx5bFT@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20220726122331.323093-1-alexander.stein@ew.tq-group.com> References: <20220726122331.323093-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221128_004312_635697_AB2D6BE1 X-CRM114-Status: GOOD ( 18.78 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, gentle ping. Any feedback on this? Thanks Alexander Am Dienstag, 26. Juli 2022, 14:23:31 CET schrieb Alexander Stein: > Expose thermal sensors as HWMON devices. > > Signed-off-by: Alexander Stein > --- > Changes in v2: > * Split from thermal_helpers patch > * No change otherwise > > The helper patch need some additional work, but this can go as it is. > > drivers/thermal/imx8mm_thermal.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/thermal/imx8mm_thermal.c > b/drivers/thermal/imx8mm_thermal.c index af666bd9e8d4..ca8e2c393030 100644 > --- a/drivers/thermal/imx8mm_thermal.c > +++ b/drivers/thermal/imx8mm_thermal.c > @@ -16,6 +16,7 @@ > #include > > #include "thermal_core.h" > +#include "thermal_hwmon.h" > > #define TER 0x0 /* TMU enable */ > #define TPS 0x4 > @@ -176,6 +177,9 @@ static int imx8mm_tmu_probe(struct platform_device > *pdev) goto disable_clk; > } > tmu->sensors[i].hw_id = i; > + > + if (devm_thermal_add_hwmon_sysfs(tmu->sensors[i].tzd)) > + dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n"); > } > > platform_set_drvdata(pdev, tmu); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel