Article View: linux.kernel.netdev
Article #9347Re: [RFC] hwmon: (tps23861) PSE-PD support, extend hwmon driver or move to pse-pd?
From: Andrew Lunn
Date: Sun, 01 Nov 2026 19:57
Date: Sun, 01 Nov 2026 19:57
32 lines
9771 bytes
9771 bytes
On Sun, Nov 01, 2026 at 11:09:42AM -0800, Guenter Roeck wrote:
> On 11/1/26 10:50, Roman Kuzmitskii wrote:
> > On 11/2/26 1:38 AM, Guenter Roeck wrote:
> > > On 11/1/26 10:02, Roman Kuzmitskii wrote:
> > > > openwrt reviewers asked me to check with you first which way you prefer:
> > > > 1. extend hwmon driver with PSE-PD (like it is done right now)
> > > > 2. move driver to drivers/net/pse-pd and extend it with PSE-PD
> > > > 3. something else
> > > >
> > > The hardware monitoring "enable" attribute is supposed to enable monitoring,
> > > not to enable some power delivery or network (or any other) port. That "port
> > > enable" feature using the hwmon ABI was sneaked in, and I am inclined to just
> > > remove the upstream driver for severe ABI violation.
> > >
> > > Guenter
> >
> > thanks, does second option look okay with taking tps23861 to drivers/net/pse-pd
> > with enable attribute going away?
> >
> A perfect solution would be to move the driver to drivers/net/pse-pd (or elsewhere)
> and implement the hwmon part as auxiliary driver, but I am also ok with moving it all.
> Note that I do not review hwmon drivers outside drivers/hwmon, so if you move the
> driver to drivers/net/pse-pd you can abuse the hwmon ABI as much as you want.
Although some network maintainers do have a basic understanding of
hwmon, and might push back on such abuse.
Does the tps23861 share anything with the tps23881? It already has a
pse-pd driver.
Andrew
Technical Details
Message-ID:
<d126b3d3-33b9-405c-9839-db492d874ece@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-354327-linux-kernel-netdev=dewy.ruReferences:
<03055ffd-d015-4810-8b8a-678821fa6dcc@damex.org> <92e3383e-26f8-4bed-b487-1c52f6c4f420@roeck-us.net> <8cd41211-b026-4158-8e18-454a9ac0bae4@damex.org> <4d12314e-56db-412c-a558-e4026cd03528@roeck-us.net>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-354327-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [RFC] hwmon: (tps23861) PSE-PD support, extend hwmon driver or move to pse-pd? Date: Sun, 1 Nov 2026 20:57:17 +0100 Organization: Usenet Network Message-ID: <d126b3d3-33b9-405c-9839-db492d874ece@lunn.ch> References: <03055ffd-d015-4810-8b8a-678821fa6dcc@damex.org> <92e3383e-26f8-4bed-b487-1c52f6c4f420@roeck-us.net> <8cd41211-b026-4158-8e18-454a9ac0bae4@damex.org> <4d12314e-56db-412c-a558-e4026cd03528@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2756754"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:gLKw3Y22+J7B6cXP9xlDoWdsNYY= sha256:sLsK/IByj6k/sxVHsbkqKy1V0rjfqIWCC5zaN+DwLNI= sha1:GzEgRjPRDmVzEPOR2S7NGlzrdwU= sha256:k2DgvVjMcvOjWpu21fiwWmtHNIga5Ixm+YiXDq1zzOw= 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 3966A11235C; Sun, 1 Nov 2026 22:58:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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.25, 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 hxbbrN591cGd; Sun, 1 Nov 2026 22:57:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354327-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 0787611234B; Sun, 1 Nov 2026 22:57:47 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 9EC2C28DF4; Sun, 1 Nov 2026 19:57:32 +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=1793563052; b=XNgLPEvSudPL6tZXaxmPtMBRwnfFm0lh7fty45VdNHytGb0emp1MICKURfRTap9atNlm bvyX5tM83IrUKjTA8YQV3HDB1iK5UvTKvmM0xIjgob2Vc0zEqZxai2JTe0oJ+oVmKAqc3 eLQPtqOTVABbXm1TxRLM3aZF3z2ugUwXdKyDiHUbk3npHFVKjY4EFn9KZSghpsyloMrXj V0IDHqVccRuatrI2ISSToh5P/LA/cY3EpVSxRDsVUxpQZajg+/XrjiHthAxhPZiWo+vK+ aGXhRQMvZqtXg22MIK55p7IVjSGAb1K+oz0FMjN8vc0i7uXlZIEIlg3plW5FJM09nxA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793563052; 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=XNlEHs0fm6A7AjdQOswonMr8zgR2fWy9NIraQgELwNo=; b=UaE0rA7c+JLRdxgMpH4zroXDh9x0yCI2nE+9VPy13QOzetuZlDgt8Uj5C6Jyost9ga3i Mkb3bOOW3jAqW0mKWocslhKrvCedaZPZdaBDsMZUyB/3fCRmdkDh5WIwnjeK5TY2fWZe8 QbtElDxlk9eEv3qXCahghoWl91pd0xNv9NzaVWv+kfjLFed3cWmDLjo9m4Ew8fgteuWhQ 17JnHR7mzIf0bwTH3vAHWomWa9EqVuu/CDrUclnInTojm+pd9Gs2wwyBoBIeen6cq1uh8 YO/UZxDkWC6vGQ957/NvNdbCNDvHQZOeJdXXOpLbxWVrecri00vOIhEIZH7fbbK5Fhw== 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=OEkdE66g; 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 001BE606A333; Sun, 1 Nov 2026 19:57:31 +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=OEkdE66g 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=1793563051; b=aFbv7d/Mr6y/GjOcHwKoJKaIhNhCYw08ovamgkTX9oVgELXCoCyKiSqo4vk2oBcngzWG ISaTUkzJJpKscOj9B7BIkNxpBMwGpH6+s6gzVHELjY5Rspr05AGmW8rFsZ1ljoFbXgjLC WI6wIwXLj/LQ/b3O/Sw0U1fAVyaXeVgG6P8lAztMEZB33r5F+nVN9CmZ27zRU9KtOrOjx HpDbGasbleIf0qHSNfSwXSHdN8q4g1SWDKknow5rUE7G7mb0HFJOaHkaGqhzMxx/ITMEN 0N0frm+LXd9MZqI7dF5KLzQhSKgTTWm4zatE3InPb8VxZVp/0cN3B74FjEZOO7DN71w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793563051; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=XNlEHs0fm6A7AjdQOswonMr8zgR2fWy9NIraQgELwNo=; b=ls2/EPUm8w8KhWgiEaPgvGDRj2jo7f5tjUt7RRICtyj3qeZ3c4Aj8K5pKVGX/vSkolGA a+j/vs4zsNBklnmQOKAjyGOI3vv1pIF626698Vh//KRLLcRf/sKG9m6YAU6uCjDlDbkyL eXcRqs0TeQtzpul+dFcxgUbbuyl8yE1Z4AwZMXnS3V6Z247Y7IfUHaKHjTbMHJpT31WCT 4w/v8TO9+EvCI9Xo9zCqQGjuoDoUfQ1Jzbk4VDns7aOuUvpegfACGjUdhkSuD4FLGZMEO QGk4GVLORzhig+2ApjS2Hw9RWvV5w97AmOGvL7hgbCztLZXk0RwfhApO36T4jhCcXKQ== 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=OEkdE66g; 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 A96E5606A326; Sun, 1 Nov 2026 19:57:30 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A96E5606A326 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=XNlEHs0fm6A7AjdQOswonMr8zgR2fWy9NIraQgELwNo=; b=OEkdE66gA1hN8MtHKuiu+Pq7OO 0fZX1a0f9ePVaMxB+KkExFGmA1eyZP17RmU+CIlYXY+IUCjCHbFC+GrihKXyI1d20oOQmRpdzHJpR lUm+kPyHnlQ1Uj1gUeQUu/4kuQxhoIA7u3W2SGQCxYnThdL27HWjykY6ixlx3eQfPtoc=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xNbg5-00Dfb4-6l; Sun, 01 Nov 2026 20:57:17 +0100 X-Cc: Roman Kuzmitskii <roman@damex.org>, linux-hwmon@vger.kernel.org, netdev@vger.kernel.org, robert.marko@sartura.hr, luka.perkov@sartura.hr, o.rempel@pengutronix.de, kory.maincent@bootlin.com 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: <4d12314e-56db-412c-a558-e4026cd03528@roeck-us.net>