mirror_ubuntu-kernels/drivers/net/dsa/qca
Andrew Lunn 4f53c27f77 net: dsa: qca8k: add op to get ports netdev
In order that the LED trigger can blink the switch MAC ports LED, it
needs to know the netdev associated to the port. Add the callback to
return the struct device of the netdev.

Add an helper function qca8k_phy_to_port() to convert the phy back to
dsa_port index, as we reference LED port based on the internal PHY
index and needs to be converted back.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-31 09:42:09 +01:00
..
ar9331.c net: dsa: ar9331: remove unnecessary dev_set_drvdata() 2022-09-22 19:30:38 -07:00
Kconfig net: dsa: qca8k: fix LEDS_CLASS dependency 2023-04-21 20:26:41 -07:00
Makefile net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00
qca8k_leds.h net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00
qca8k-8xxx.c net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00
qca8k-common.c net: dsa: qca8k: convert to regmap read/write API 2023-01-27 12:06:45 +00:00
qca8k-leds.c net: dsa: qca8k: add op to get ports netdev 2023-05-31 09:42:09 +01:00
qca8k.h net: dsa: qca8k: add LEDs basic support 2023-04-19 12:59:15 +01:00