Merge branch 'net-phylink-rearrange-ovr_an_inband-support'
authorJakub Kicinski <kuba@kernel.org>
Fri, 31 May 2024 01:32:21 +0000 (18:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 May 2024 01:32:22 +0000 (18:32 -0700)
commit0abccaf0f9bd2a87aa6512da69f0e3630f3048ee
treef3bce70e0fa650cd972d6788f5ff5ec892117175
parent2f19a795e1f9c722b182f9a3d3dedd80f90a0715
parentab77c7aa9388ccc82102c9e448112ab478bba80c
Merge branch 'net-phylink-rearrange-ovr_an_inband-support'

Russell King says:

====================
net: phylink: rearrange ovr_an_inband support

This series addresses the use of the ovr_an_inband flag, which is used
by two drivers to indicate to phylink that they wish to use inband mode
without firmware specifying inband mode.

The issue with ovr_an_inband is that it overrides not only PHY mode,
but also fixed-link mode. Both of the drivers that set this flag
contain code to detect when fixed-link mode will be used, and then
either avoid setting it or explicitly clear the flag. This is
wasteful when phylink already knows this.

Therefore, the approach taken in this patch set is to replace the
ovr_an_inband flag with a default_an_inband flag which means that
phylink defaults to MLO_AN_INBAND instead of MLO_AN_PHY, and will
allow that default to be overriden if firmware specifies a fixed-link.
This allows users of ovr_an_inband to be simplified.

What's more is this requires minimal changes in phylink to allow this
new mode of operation.

This series changes phylink, and also updates the two drivers
(fman_memac and stmmac), and then removes the unnecessary complexity
from the drivers.

This series may depend on the stmmac cleanup series I've posted
earlier - this is something I have not checked, but I currently have
these patches on top of that series.
====================

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