Merge branch 'net-remove-last-of-the-phylink-validate-methods-and-clean-up'
authorJakub Kicinski <kuba@kernel.org>
Wed, 18 Oct 2023 00:51:53 +0000 (17:51 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Oct 2023 00:51:53 +0000 (17:51 -0700)
commit9fe1450f6d3ce67d963c195d3fb8510d9c673bdd
tree831d794057d821e594654182b49d7a77f1be73bb
parent73b24e7ce8f1f47e2b73c9b6724188898f4ca6fd
parent743f6397623edc708eda76ecc20e70032166e573
Merge branch 'net-remove-last-of-the-phylink-validate-methods-and-clean-up'

Russell King says:

====================
net: remove last of the phylink validate methods and clean up

This four patch series removes the last of the phylink MAC .validate
methods which can be found in the Freescale fman driver. fman has a
requirement that half duplex may not be supported in RGMII mode,
which is currently handled in its .validate method.

In order to keep this functionality when removing the .validate method,
we need to replace that with equivalent functionality, for which I
propose the optional .mac_get_caps method in the first patch.

The advantage of this approach over the .validate callback is that MAC
drivers only have to deal with the MAC_* capabilities, and don't need
to call back into phylink functions to do the masking of the ethtool
linkmodes etc - which then becomes internal to phylink. This can be
seen in the fourth patch where we make a load of these methods static.
====================

Link: https://lore.kernel.org/r/ZS1Z5DDfHyjMryYu@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>