]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: add support for internal phy and internal mdio
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:10 +0000 (23:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000 (15:30 -0700)
commitcb86f982b5152f9c266f297e73ad5f2965f160d7
tree4ab5b88cd5fb8be9bcdfdb0db3264f592e171767
parent7578e888c1e9bad5e2216932dfe5d002bb3fce8d
net: dsa: qca8k: add support for internal phy and internal mdio

Add support to setup_mdio_bus for internal phy declaration. Introduce a
flag to use the legacy port phy mapping by default and use the direct
mapping if a mdio node is detected in the switch node. Register a
dedicated mdio internal mdio bus to address the different mapping
between port and phy if the mdio node is detected.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h