net: dsa: qca8k: add support for additional modes for netdev trigger
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 21 Jun 2023 09:54:09 +0000 (11:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Jun 2023 02:51:42 +0000 (19:51 -0700)
commit2555f35a4f428a9bfdf09aa0459dbfdf59a24a9a
tree210e2afd06dec705b982e1819163a36c199f33e3
parent2ffb8d02a9b60d9190a871cb8466cd0721bc0a49
net: dsa: qca8k: add support for additional modes for netdev trigger

The QCA8K switch supports additional modes that can be handled in
hardware for the LED netdev trigger.

Add these additional modes to further support the Switch LEDs and
offload more blink modes.

Add additional modes:
- link_10
- link_100
- link_1000
- half_duplex
- full_duplex

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20230621095409.25859-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca/qca8k-leds.c