* Re: [PATCH 2/2] hwmon: ltc4296-1: add driver support [not found] ` <20241025115624.21835-3-antoniu.miclaus@analog.com> @ 2024-10-25 14:22 ` Guenter Roeck 2024-10-25 15:01 ` Oleksij Rempel 0 siblings, 1 reply; 2+ messages in thread From: Guenter Roeck @ 2024-10-25 14:22 UTC (permalink / raw) To: Antoniu Miclaus, Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-hwmon, devicetree, linux-kernel Cc: Oleksij Rempel, Kory Maincent, Network Development Hi, On 10/25/24 04:56, Antoniu Miclaus wrote: > Add support for LTC4296-1 is an IEEE 802.3cg-compliant, > five port, single-pair power over Ethernet (SPoE), power > sourcing equipment (PSE) controller. > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > --- ... > + hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, > + spi->modalias, > + st, ltc4296_1_groups); New drivers must use the the with_info() hardware monitoring API. The API use is inappropriate: _enable attributes are supposed to enable monitoring, not a power source. The hardware monitoring subsystem is responsible for hardware _monitoring_, not control. It can be tied to the regulator subsystem, but even that seems to be be inappropriate here. I think the driver should probably reside in drivers/net/pse-pd/. That doesn't mean it can not support hardware monitoring, but that isn't really the chip's primary functionality. Yes, I see that we already have ti,tps23861 in the hardware monitoring subsystem, but that may be just as wrong. I am copying the PSE subsystem maintainers and mailing list for advice. Thanks, Guenter ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] hwmon: ltc4296-1: add driver support 2024-10-25 14:22 ` [PATCH 2/2] hwmon: ltc4296-1: add driver support Guenter Roeck @ 2024-10-25 15:01 ` Oleksij Rempel 0 siblings, 0 replies; 2+ messages in thread From: Oleksij Rempel @ 2024-10-25 15:01 UTC (permalink / raw) To: Guenter Roeck Cc: Antoniu Miclaus, Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-hwmon, devicetree, linux-kernel, Kory Maincent, Network Development Hi Guenter, On Fri, Oct 25, 2024 at 07:22:08AM -0700, Guenter Roeck wrote: > Hi, > > On 10/25/24 04:56, Antoniu Miclaus wrote: > > Add support for LTC4296-1 is an IEEE 802.3cg-compliant, > > five port, single-pair power over Ethernet (SPoE), power > > sourcing equipment (PSE) controller. > > > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> > > --- > > ... > > > + hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, > > + spi->modalias, > > + st, ltc4296_1_groups); > > New drivers must use the the with_info() hardware monitoring API. > > The API use is inappropriate: _enable attributes are supposed to enable > monitoring, not a power source. The hardware monitoring subsystem is > responsible for hardware _monitoring_, not control. It can be tied to > the regulator subsystem, but even that seems to be be inappropriate here. > I think the driver should probably reside in drivers/net/pse-pd/. > That doesn't mean it can not support hardware monitoring, but that > isn't really the chip's primary functionality. > > Yes, I see that we already have ti,tps23861 in the hardware monitoring > subsystem, but that may be just as wrong. > > I am copying the PSE subsystem maintainers and mailing list for advice. Thank you! Yes, the PSE subsystem is the proper location for this chip. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-25 15:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20241025115624.21835-1-antoniu.miclaus@analog.com>
[not found] ` <20241025115624.21835-3-antoniu.miclaus@analog.com>
2024-10-25 14:22 ` [PATCH 2/2] hwmon: ltc4296-1: add driver support Guenter Roeck
2024-10-25 15:01 ` Oleksij Rempel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).