]> git.karo-electronics.de Git - karo-tx-linux.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)
commita3c53be55c955b7150cda17874c3fcb4eeb97a89
tree5093c1039cf33ac238e5a31db2271a6e845bfdd9
parent0dd12d54c4252e5a51f3b9f7b622b3b7a5b95293
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