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 B10C5C32771 for ; Wed, 21 Sep 2022 11:45:37 +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=9H/4V+Ej0uJfir52Tt9NrFL9FZvFv1RWI4moLt7z9qc=; b=y5o2VU7YDvbB/X 8tv7U2wGkgS+xQISFFU6d3qa3mxCMmhUhA8LnVYuy9GiPIFq853IxOd/GSolVPp8H0MA51YLNMqte +Fq973nyuS9JUjbyBwO5h/DZLpqITOgMevgP5XBtHVNmYYM2kQxtLX7b9Fvp1OyB6eWnuq73jndK4 dAr4EpFuNxHlMStmD4pzWFiuIcC0vVI8zH1WXKAFGF9K1mHBBKdguHa2I91ZqgHHlcXNJVWD6DtM3 D1JkX46wzTyg3aNig01MvZr3S903vCziPd+V8ncNpKivqQErVMBfXsZGg8w69RHDpepC06jA1saEq 20DyFoCfXa/bqGabirvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oay9T-00B9dR-GD; Wed, 21 Sep 2022 11:44:27 +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 1oay9P-00B9c4-Gi for linux-arm-kernel@lists.infradead.org; Wed, 21 Sep 2022 11:44:25 +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=1663760663; x=1695296663; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vUihO/ZAT9LYk2mkbZM6lyiElbZkhBiSGqEmjPJTLfI=; b=ddq+G69eDvsjhTkFtsCgyA44jNhJlt2bzsq6wnJchp7tpuRvYzrnYbZz a+i5rJwjz3GTI/f7Rj9ttv/C0FAD1lUFJPKv0Bz1hJqrRuybInuoEhatU U3vx+00iNsZ7ql/4VFYsS7lAxoFUgmKQOWrOEiRyl1DQZFuorhlT1XbH4 T2PR/fDGv7fl8Vkm4wsytDcQrrLbKPy3bgkhZVU09htRTtOVPe3qi61qR 6Py1UEbNiT4LGuWm+Xl2K94boIai89BO47Jts0Algt6lqQysB224GoYDm 5PS+xb1vWqZGZyIzQlpl+BJukTy5f9uzu0tHUG8aoydqqKuXR8MyE+ZNN Q==; X-IronPort-AV: E=Sophos;i="5.93,333,1654552800"; d="scan'208";a="26310236" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 21 Sep 2022 13:44:19 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 21 Sep 2022 13:44:19 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 21 Sep 2022 13:44:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663760659; x=1695296659; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vUihO/ZAT9LYk2mkbZM6lyiElbZkhBiSGqEmjPJTLfI=; b=gWybAWMTUM5dua9RM9x/8apoIYXUnJk6DadUx56GDebIDY5Yfp5UFrtD xz2NSvSI3AX6YeAcmOfeEPlV1x2gOpaIml8hnnjWmLg0xbzBIRCHbBNTe v14UjsgAPeKc52jf+cFfp0Ldfxb8VZneL90bE+NgqumEdRJNZsNuBnSkw h708t7CGExfF3aTkQLZwHpaUldLLL8RbAoV46hq80M5ZhFkHHPAVfwq44 iw7z5ajC0MduMSV5OMtS5O7s30tLmyZgAYqaS8bVRvlPCyrfJL9j9GURr YCScWfAwMn6+VpkiIlDQg0Xw32zl7nAAg3B/76gwUF+BvaB85LCbcDmIM g==; X-IronPort-AV: E=Sophos;i="5.93,333,1654552800"; d="scan'208";a="26310235" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 21 Sep 2022 13:44:19 +0200 Received: from steina-w.localnet (unknown [10.123.49.11]) (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 F2766280056; Wed, 21 Sep 2022 13:44:18 +0200 (CEST) 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: Wed, 21 Sep 2022 13:44:18 +0200 Message-ID: <5863241.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-20220921_044424_088837_6E38ADAC X-CRM114-Status: GOOD ( 19.25 ) 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 Gentle ping Am Dienstag, 26. Juli 2022, 14:23:31 CEST 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