]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d5b231da7acfa6d65c78b4414158cbff5fc4040
treeabc746fdee60164144b4880aebe7bbdde6ee8522
parentdc745ece3bd5a3f0aacb70f0359dddd789806420
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