Re: [PATCH net-next v6 2/2] net: pse-pd: add LED trigger support via notification path
From: Kory Maincent
Date: Wed Dec 02 2026 - 12:55:16 EST
On 12/2/26 18:36, Carlo Szelinsky wrote:
Hi Kory,
On Mon, 30 Nov 2026 17:31, Kory Maincent wrote:
Human readable commit message please.
Acknowledged.
I don't get why you separate the registration of the two led triggers.
What is the reason for that?
"delivering" changes when a PD is plugged in or removed. The core only
sees that through the IRQ or the poll helper. Without one of them the
LED would miss it, so I only register "delivering" when there is an
event source. "enabled" only changes through the core, so it always
works.
The second place is for drivers like tps23881, which call
devm_pse_irq_helper() after devm_pse_controller_register(). At
registration pcdev->irq is still 0.>
If you prefer, I can register both triggers in one place for every
controller, and document that "delivering" needs an IRQ or polling to
follow plug and unplug. What do you think?
Yes this seems good to me.
Please no inline in C files. Let the compiler decide.
Right, will fix.
There is one led trigger per PI isn't it? So why do you put it here
instead of in the pse_pi structure?
Right, I'll move it into struct pse_pi. As a pointer to a struct only
pse_core.c knows, like the poll fields. OK?
Yes.
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com