🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10488

Re: [PATCH net-next] net: phy: realtek: register hwmon thermal zones

#10488
From: Andrew Lunn
Date: Tue, 03 Nov 2026 13:41
27 lines
9290 bytes
On Tue, Nov 03, 2026 at 12:21:28PM +0100, Hleb Shauchenka via B4 Relay wrote:
> From: Hleb Shauchenka <me@marleb.org>
> 
> The Realtek PHY hwmon device exposes the PHY temperature, but its
> channel info lacks HWMON_C_REGISTER_TZ, so the hwmon core does not
> register the sensor with the thermal framework and device-tree
> thermal zones that reference the PHY cannot bind.
> 
> Set the flag, as the Aquantia PHY driver does. This lets the RTL8261N
> sensors on the Zyxel XGS1250-12 B1 drive the chassis fan through
> thermal cooling maps.
> 
> Tested on a Zyxel XGS1250-12 B1 with OpenWrt's Linux 6.18.55: the
> three PHY thermal zones register, and an emulated 85 C reading on one
> of them (CONFIG_THERMAL_EMULATION) switches the fan on through the
> existing 80 C trip and off again once cleared.
> 
> This patch was prepared with AI assistance (Claude Opus 5.5 and Sol
> 6.1), which also helped investigate the problem and run the tests on
> my switch.
> 
> Signed-off-by: Hleb Shauchenka <me@marleb.org>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <587f01e2-a7b0-4355-9bc1-cbe73b2331f4@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355651-linux-kernel-netdev=dewy.ru
References: <20261103-realtek-hwmon-tz-v1-1-e672723c58cb@marleb.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355651-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: phy: realtek: register hwmon thermal zones
Date: Tue, 3 Nov 2026 14:41:45 +0100
Organization: Usenet Network
Message-ID: <587f01e2-a7b0-4355-9bc1-cbe73b2331f4@lunn.ch>
References: <20261103-realtek-hwmon-tz-v1-1-e672723c58cb@marleb.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3196671"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:y1HdkBSo9paOJONKXMngdsC/D8E= sha256:YyWMu/h9wxkZKgrrn5oBZzTmd714MWn/2lstLNjWC3A=
	sha1:fpyYdBLeGEssO7JYm1iCfLHuJew= sha256:Hp5PTfVdbXzqXxGphY210k51LKn74VNP7uHnAFxJKE8=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E7FC1112923; Tue,  3 Nov 2026 18:19:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5DDoAl-a0Rzk;
	Tue,  3 Nov 2026 18:19:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-355651-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 4CBCD11291B; Tue,  3 Nov 2026 18:19:40 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 0684CA2600; Tue,  3 Nov 2026 13:42:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793713338;
	b=2wiKxgu8BiyWtmjvSbcgU5lo/4/Bg4dGhZhOuiWD7zFo8Ua55J5JNJnAet8OlNzaF01E
	 yXSGZKVOwaOKPzCw1efFiDzGHUYm3S44OU6axN2av/nqj2zVO2SmGlCGUerOSBTCHN86p
	 Jc83z2g2b2/3EqWipLOjVxgl9waLvnRV8iXFVVJgAXfQp9BU9IWo1E+gGY/Cw5KA0YyqB
	 lCThKAIsfE0v1xVpFhPpAsZWEOx343K8nLH88VNhxc5qBoWJRcrNWM3kT/q14A9R+yc4U
	 YqcAXMGKKWcHCAC0WZu9SeCLvNbGyEGvfCF/tPs3Xxv9RxqdTeLF0uARdbOyxy0ezug==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793713338;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=AednhgQJnjavLPaTDw85fSfXEn6q/KrQAf7U+CZwFaY=;
	b=a9OvTRO4X5z8IZ6Y+867zzS13NADchbgObhkpO1EhZ6exBB44fVDQN4gFcjZ9cqhFNzW
	 Z9kBNWPhzPzFMi/Ua2aKqBDeRRCHoDHiKMnDxb4q06rzlb0pURxdzZ5GmMq8TVlLAum4J
	 8fufCa8Ocj7XVppvJ0VIW1DGP8Ue8UOCp/xuvuOk6TQ7GMwvxLqsE964A4UccS7hFu/sr
	 d/5Rd498ng9kuOUtGyrulL+cU/tA5Yi7Rpzi3GH8bO4HMURBXtuKpXQ7TmsO3Y7VKRsP2
	 Dl3UftCTmDa5YB71U1qat91dKalqHH5z1EBMwvlcjMj6vxN67HtGwpCsuYO/lJeU2Tw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=LyZ6HfBY;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 14784606A330;
	Tue,  3 Nov 2026 13:42:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=LyZ6HfBY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793713317;
	b=xXWmTCgdQPKFNkdNcslzozrVlCyOlDjCw55XxQIuwMiFTf9vVOx9ZALzO4fTd7E2L2mG
	 QffFZ8BQ5KanpQv9RTrrYs6wVq/7n0Pz9ZZ1yXBS0QIW2JsjRURU4Ak2coPiIe9MSsIrd
	 W2bLmELCtaeblcVaJVHaiCbJsXGa20SckKeqJXE4Qy9GZxifhrQz7TmRoMV7+rmNvS4Ri
	 TzmoRoOBFGpNQnCxpEadIsuW/eK4DILa24Oxuf6cs0nMu1+OVUKdUFV43rnGHCSCfmJNf
	 F2t9fAmxzI14m+FtpDjr0BQvJoTB9F5CG1gldZZVAkYZGuRlFDSpB/khGL1DNzkX9IQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793713317;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=AednhgQJnjavLPaTDw85fSfXEn6q/KrQAf7U+CZwFaY=;
	b=CfuB+I9+sx37zRqtKQvhz60YpuHNpYCco5QU2UD4mCR2TudFWBmGZLkVw+y4ec9bFQF1
	 s9JtY3BBtLi0fXKSjEu5xFx/yiDaRdE7MlYYroGXYzE997Hz3LJQlBE1znhKa+IWYQH1L
	 AEeOWTBsEf+PLVi/8R/RO0E3M11zpVQYObMKfGhNDc5/mZ32WLedJPSj//BWFgrVN3rtc
	 RCvxuuzFJIgws5hF9BA5X+0w3iLWNopf0Y758Y5+K7nDviXNB+Fun383M9zuIGU2Snp7t
	 uAIVKlH69Q0qcGN/IWA33fbJoFPXsuc2t5GxDl9eEPSAbdkUUBu3Z4yKY+yKgLnUHDg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=LyZ6HfBY;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA5AA606A324;
	Tue,  3 Nov 2026 13:41:56 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CA5AA606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=AednhgQJnjavLPaTDw85fSfXEn6q/KrQAf7U+CZwFaY=; b=LyZ6HfBYpyTcLCrFvCBrJjgU2H
	HpD+e1kSfGIQF2C45rRgLMbRwZywqiv7PmGA3mN9ko8wL7RWg/souxRV4X/ndDgMgums0GENXrBKJ
	Oh2FtR2DKNoywkAQPtJAhaaRL6zv2DssikKLdYAxCYsFEPxH3g3+ZgcAtO6V63VsIVNU=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOEll-00E4CV-1i; Tue, 03 Nov 2026 14:41:45 +0100
X-Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261103-realtek-hwmon-tz-v1-1-e672723c58cb@marleb.org>