net: dsa: mv88e6xxx: use PHY_DETECT in mac_link_up/mac_link_down
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 14 Mar 2020 10:16:03 +0000 (10:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 00:11:12 +0000 (17:11 -0700)
commitae0d67f3a38cd11bd6cbb150dd8b91d9c57da9e8
treeabc746fdee60164144b4880aebe7bbdde6ee8522
parent11ae29c80d1292b1090a2daa0e8ac8206caab7cb
net: dsa: mv88e6xxx: use PHY_DETECT in mac_link_up/mac_link_down

Use the status of the PHY_DETECT bit to determine whether we need to
force the MAC settings in mac_link_up() and mac_link_down().

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c