]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:46:50 +0000 (07:46 +0200)
commit3edbf0fd90ff9d49b318fd176acd8b20733fc037
tree1e98c00b40bd82497aa76facd6fbb413fa10508d
parentf27b1e1fd32905f1de06f13b02fac2ae6d1382af
net: dsa: mv88e6xxx: move link forcing to mac_prepare/mac_finish

[ Upstream commit 267d7692f6cd5c9b8796324cdd54db594ca8d3e4 ]

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>
Stable-dep-of: 52fdc41c3278 ("net: dsa: mv88e6xxx: fix internal PHYs for 6320 family")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/mv88e6xxx/chip.c