From: Romain Gantois <romain.gantois@bootlin.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>,
Mark Brown <broonie@kernel.org>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 2/2] net: sfp: manage receiver and transmitter regulators
Date: Fri, 20 Mar 2026 10:55:27 +0100 [thread overview]
Message-ID: <2824900.mvXUDI8C0e@fw-rgant> (raw)
In-Reply-To: <aaspCUWel9k_ls4i@sirena.co.uk>
[-- Attachment #1: Type: text/plain, Size: 2440 bytes --]
Hello Mark,
On Friday, 6 March 2026 20:20:41 CET Mark Brown wrote:
> On Tue, Mar 03, 2026 at 06:32:52PM +0000, Russell King (Oracle) wrote:
> > On Tue, Mar 03, 2026 at 05:31:36PM +0000, Mark Brown wrote:
...
>
> > Now, if you're going to say "ah, so it has power pins, you need to
> > describe them using a regulator" then I would say to you, when are
> > we introducing regulators for every device we describe in DT such
> > as LEDs, switches, GPIO pins, RAM, etc? Every device needs to have a
> > source of power after all.
>
> It sounds from the cover letter for this series like there's some demand
> for power control of SFP cages, the cover letter isn't terribly specific
> about what circumstances though. Possibly there's some UI for this on
> the system, or the hardware has some mechanism for detecting physical
> insertion to the SFP cage (hopefully well in advance of the electrical
> contacts being made)? Romain, are you able to share more specifics on
> the use case here?
It seems like my upstreaming strategy was incorrect. The series that I sent is
a subset of my original use case, but in hindsight I should've just presented
the original one in the first place, that would've been clearer, sorry about
that.
Originally, I implemented a runtime PM support in the SFP core. This allowed
to cut power to the cages when the attached network interface was down,
thereby saving power. This is interesting since I'm dealing with a battery-
powered system which has SFP cages. However, an upstream version of this would
require some kind of new userspace interface to signal indifference to module
detection when the upstream network interface is down. Otherwise it could
break existing userspace applications which expect to detect and interact with
SFP modules (e.g. read EEPROMs, read temperature sensors) even when their
upper network interfaces are down.
Aside from this, what Russell told me in this message:
https://lore.kernel.org/all/aacYGTBobbfJgZpp@shell.armlinux.org.uk/
suggests that cutting power to SFP cages could lead to unspecified behavior
with some modules, so for example unloading the SFP core kernel module while
an SFP module was inserted could have unintended consequences... This problem
requires some more investigation on my side before I can submit a proper
runtime PM solution.
Thanks,
--
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-03-20 9:55 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 13:54 [PATCH net-next 0/2] net: sfp: Describe and handle regulators Romain Gantois
2026-03-03 13:54 ` [PATCH net-next 1/2] dt-bindings: net: sff,sfp: Describe power supply pins Romain Gantois
2026-03-03 18:37 ` Conor Dooley
2026-03-03 13:54 ` [PATCH net-next 2/2] net: sfp: manage receiver and transmitter regulators Romain Gantois
2026-03-03 14:22 ` Mark Brown
2026-03-03 14:40 ` Romain Gantois
2026-03-03 15:12 ` Russell King (Oracle)
2026-03-03 15:12 ` Russell King (Oracle)
2026-03-03 15:14 ` Mark Brown
2026-03-03 15:25 ` Russell King (Oracle)
2026-03-03 17:31 ` Mark Brown
2026-03-03 18:32 ` Russell King (Oracle)
2026-03-06 19:20 ` Mark Brown
2026-03-20 9:39 ` Romain Gantois
2026-03-20 14:45 ` Russell King (Oracle)
2026-03-25 9:40 ` Romain Gantois
2026-03-20 9:55 ` Romain Gantois [this message]
2026-03-04 21:38 ` Andrew Lunn
2026-03-06 16:19 ` Mark Brown
2026-03-03 15:10 ` [PATCH net-next 0/2] net: sfp: Describe and handle regulators Russell King (Oracle)
2026-03-03 15:54 ` Romain Gantois
2026-03-03 17:19 ` Russell King (Oracle)
2026-03-04 21:44 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2824900.mvXUDI8C0e@fw-rgant \
--to=romain.gantois@bootlin.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox