net: dsa: mv88e6xxx: Make sure to configure ports with external PHYs
authorMarek Vasut <marex@denx.de>
Tue, 11 Sep 2018 22:15:24 +0000 (00:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:35:39 +0000 (20:35 -0700)
commitd700ec4118f9d5e88db8f678e7342f28c93037b9
tree084d2e9b6b53fdbe7e3298dd201411cb59703917
parentf8a1988f655192ae8ea6e1d940706a8340924bbc
net: dsa: mv88e6xxx: Make sure to configure ports with external PHYs

The MV88E6xxx can have external PHYs attached to certain ports and those
PHYs could even be on different MDIO bus than the one within the switch.
This patch makes sure that ports with such PHYs are configured correctly
according to the information provided by the PHY.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c