RFC DSA LED infrastructure, mv88e6xxx and QCA8K
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest8 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | net: dsa: mv88e6xxx: Add helpers for 6352 LED blink and brightnessdrivers/ drivers/ | +174 | 0 replies | |
| 2/8 | net: dsa: mv88e6xxx: Tie the low level LED functions to device opsdrivers/ drivers/ | +23 | 0 replies | |
| 3/8 | net: dsa: Plumb LED brightnes and blink into switch APIdrivers/ include/ | +43 | 0 replies | |
| 4/8 | dsa: Create port LEDs based on DT bindinginclude/ net/ | +141 | 3 replies | |
| 5/8 | dsa: Plumb in LED calls needed for hardware offloadinclude/ net/ | +62 | 0 replies | |
| 6/8 | dsa: mv88e6xxx: Plumb in LED offload functionsdrivers/ drivers/ | +59 | 0 replies | |
| 7/8 | arm: boot: dts: mvebu: linksys-mamba: Add Ethernet LEDsarch/ | +66 | 0 replies | |
| 8/8 | dsa: qca8k: Use DSA common code for LEDsdrivers/ drivers/ drivers/ +1 more | +56 | 3 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Christian Marangi |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC net-next 0/8] DSA LED infrastructure, mv88e6xxx and QCA8K
This patchset extends the DSA core to add support for port LEDs being controlled via sys/class/leds, and offloading blinking via ledtrig-netdev. The core parses the device tree binding, and registers LEDs. The DSA switch ops structure is extended with the needed functions.
The mv88e6xxx support is partially added. Support for setting the brightness and blinking is provided, but offloading of blinking is not yet available. To demonstrate this, the wrt1900ac device tree is extended with LEDs.
The existing QCA8K code is refactored to make use of this shared code.
RFC:
Linus, can you rework your code into this for offloading blinking ? And test with ports 5 & 6.
Christian: Please test QCA8K. I would not be surprised if there is an off-by-one.
This code can also be found in
https://github.com/lunn/ v6.7-rc2-net-next-mv88e6xxx-leds
Andrew Lunn (8):
net: dsa: mv88e6xxx: Add helpers for 6352 LED blink and brightness
net: dsa: mv88e6xxx: Tie the low level LED functions to device ops
net: dsa: Plumb LED brightnes and blink into switch API
dsa: Create port LEDs based on DT binding
dsa: Plumb in LED calls needed for hardware offload
dsa: mv88e6xxx: Plumb in LED offload functions
arm: boot: dts: mvebu: linksys-mamba: Add Ethernet LEDs
dsa: qca8k: Use DSA common code for LEDs
.../dts/marvell/armada-xp-linksys-mamba.dts | 66 +++++ drivers/net/dsa/mv88e6xxx/chip.c | 103 +++++++ drivers/net/dsa/mv88e6xxx/chip.h | 14 + drivers/net/dsa/mv88e6xxx/port.c | 99 +++++++ drivers/net/dsa/mv88e6xxx/port.h | 76 +++++- drivers/net/dsa/qca/qca8k-8xxx.c | 11 +- drivers/net/dsa/qca/qca8k-leds.c | 255 +++--------------- drivers/net/dsa/qca/qca8k.h | 9 - drivers/net/dsa/qca/qca8k_leds.h | 21 +- include/net/dsa.h | 17 ++ net/dsa/dsa.c | 190 +++++++++++++ 11 files changed, 620 insertions(+), 241 deletions(-)
Signature · 1 line
2.42.0