Re: [PATCH net-next v6 2/2] net: pse-pd: add LED trigger support via notification path
From: Carlo Szelinsky
Date: Wed Dec 02 2026 - 12:37:01 EST
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?
> 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?
Carlo