summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/sja1105
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2023-05-29 18:32:43 +0200
committerDavid S. Miller <davem@davemloft.net>2023-05-31 09:42:09 +0100
commit4f53c27f772e27e4cf4e5507d6f4d5980002cb6a (patch)
treee8c90fa7820168d53d1266038a602c7b837594cb /drivers/net/dsa/sja1105
parente0256648c831af13cbfe4a1787327fcec01c2807 (diff)
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>
Diffstat (limited to 'drivers/net/dsa/sja1105')
0 files changed, 0 insertions, 0 deletions