[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YRLt8p3UI5IC0Nm5@lunn.ch>
Date: Tue, 10 Aug 2021 23:21:54 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Heiner Kallweit <hkallweit1@...il.com>
Cc: Pavel Machek <pavel@....cz>,
Marek BehĂșn <kabel@...nel.org>,
Michael Walle <michael@...le.cc>, anthony.l.nguyen@...el.com,
bigeasy@...utronix.de, davem@...emloft.net,
dvorax.fuxbrumer@...ux.intel.com, f.fainelli@...il.com,
jacek.anaszewski@...il.com, kuba@...nel.org, kurt@...utronix.de,
linux-leds@...r.kernel.org, netdev@...r.kernel.org,
sasha.neftin@...el.com, vinicius.gomes@...el.com,
vitaly.lifshits@...el.com
Subject: Re: [PATCH net-next 5/5] igc: Export LEDs
> A challenge here would be unique numbering if there are multiple
> network interfaces with LED support (especially if the interfaces
> use different drivers). So the numbering service would have to be
> in LED subsystem core or network subsystem core.
Yes, it needs to be somewhere common.
We also need to document that the number is meaningless and
arbitrary. It can change from boot to boot. Also, LEDs from the same
PHY or MAC are not guaranteed to be contiguous, since multiple
PHYs/MACs can be enumerating their LEDs at the same time.
Andrew
Powered by blists - more mailing lists