]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Support multiple MDIO busses
authorAndrew Lunn <andrew@lunn.ch>
Tue, 24 Jan 2017 13:53:50 +0000 (14:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 20:33:51 +0000 (15:33 -0500)
commitb34277b7205dddb441a12e45425be1afb329475a
tree5093c1039cf33ac238e5a31db2271a6e845bfdd9
parent351156b15683700756613c226057501ea611e588
net: dsa: mv88e6xxx: Support multiple MDIO busses

The mv88e6390 has multiple MDIO busses. Generalize the parsing of the
device tree to support multiple mdio nodes. The external mdio bus has
a compatible strings to indicate it is external.

Keep a linked list of busses, placing the external mdio bus at the
tail of the list. When within the driver an mdio bus is needed,
e.g. for EEE or SERDES, use the head of the list which should be the
internal bus.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/marvell.txt
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h