Merge branch 'mv88e6xxx-phylink-prepare'
authorDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2023 09:39:41 +0000 (10:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2023 09:39:41 +0000 (10:39 +0100)
Russell King says:

====================
net: dsa: mv88e6xxx: prepare for phylink_pcs conversion

These two patches provide some preparation for converting the mv88e6xxx
DSA driver to use phylink_pcs rather than bolting the serdes bits into
the MAC calls.

In order to correctly drive mv88e6xxx hardware when the PCS code is
split, we need to force the link down while changing the configuration
of a port. This is provided for via the mac_prepare() and mac_finish()
methods, but DSA does not forward these on to DSA drivers.

Patch 1 adds support to the DSA core to forward these two methods to
DSA drivers, and patch 2 moves the code from mv88e6xxx_mac_config()
into the respective methods.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge