[net-next PATCH v4 02/14] net: dsa: qca8k: add LEDs basic support
Andrew Lunn
andrew at lunn.ch
Fri Mar 17 06:34:35 PDT 2023
> (I guess the LED configuration i only makes sense for non-CPU ports? It
> seems you want to configure up to 15 LEDs in total for 5 ports).
Hi Michal
In the general case, there is no reason that i can think that stops
the CPU port having LEDs. For many switch designs, there is no
specific CPU port, any can be used. And all ports are likely to have
an LED controller.
What becomes tricky with Linux is offloading blinking to CPU ports.
There is no netdev to represent it, hence no netdev based software
blinking. And without software blinking, you have nothing to offload
to hardware. But you could still use the LEDs for other things.
Having said all that, i don't think i have ever seen a box with LEDs
for the CPU port.
Andrew
More information about the linux-arm-kernel
mailing list