net: dsa: mv88e6xxx: move link forcing to mac_prepare/mac_finish
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 25 May 2023 10:38:50 +0000 (11:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2023 09:39:40 +0000 (10:39 +0100)
commit267d7692f6cd5c9b8796324cdd54db594ca8d3e4
treef153403dd85604db59a125b699b1426f35985426
parentdd805cf3e80e038aeb06902399ce9bd6fafb4ff3
net: dsa: mv88e6xxx: move link forcing to mac_prepare/mac_finish

Move the link forcing out of mac_config() and into the mac_prepare()
and mac_finish() methods. This results in no change to the order in
which these operations are performed, but does mean when we convert
mv88e6xxx to phylink_pcs support, we will continue to preserve this
ordering.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c