From: Kory Maincent <kory.maincent@bootlin.com>
To: Carlo Szelinsky <github@szelinsky.de>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Lee Jones <lee@kernel.org>, Pavel Machek <pavel@kernel.org>,
Jonas Jelonek <jelonek.jonas@gmail.com>,
Ross Cawston <ross@r-sc.ca>,
netdev@vger.kernel.org, linux-leds@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v6 2/2] net: pse-pd: add LED trigger support via notification path
Date: Wed, 2 Dec 2026 18:54:59 +0100 [thread overview]
Message-ID: <b106596c-d696-47d4-b192-cd834fc7077a@bootlin.com> (raw)
In-Reply-To: <20261202173635.207646-1-github@szelinsky.de>
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
next prev parent reply other threads:[~2026-12-02 17:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 12:15 [PATCH net-next v6 0/2] net: pse-pd: add poll path and LED trigger support Carlo Szelinsky
2026-11-28 12:15 ` [PATCH net-next v6 1/2] net: pse-pd: add pse_poll_helper() Carlo Szelinsky
2026-11-30 15:25 ` Kory Maincent
2026-12-02 17:35 ` Carlo Szelinsky
2026-12-02 17:46 ` Kory Maincent
2026-11-28 12:15 ` [PATCH net-next v6 2/2] net: pse-pd: add LED trigger support via notification path Carlo Szelinsky
2026-11-29 12:15 ` sashiko-bot
2026-12-02 17:36 ` Carlo Szelinsky
2026-11-30 16:31 ` Kory Maincent
2026-12-02 17:36 ` Carlo Szelinsky
2026-12-02 17:54 ` Kory Maincent [this message]
2026-11-29 12:16 ` [PATCH net-next v6 0/2] net: pse-pd: add poll path and LED trigger support sashiko-bot
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=b106596c-d696-47d4-b192-cd834fc7077a@bootlin.com \
--to=kory.maincent@bootlin.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=github@szelinsky.de \
--cc=jelonek.jonas@gmail.com \
--cc=kuba@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=pavel@kernel.org \
--cc=ross@r-sc.ca \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.