[PATCH 4/9] net: introduce a helper to determine whether to use in-band autoneg

Bin Meng bmeng.cn at gmail.com
Wed Sep 29 04:32:55 CEST 2021


On Tue, Sep 28, 2021 at 7:50 AM Vladimir Oltean <vladimir.oltean at nxp.com> wrote:
>
> Certain serial SERDES protocols like 1000base-x, 2500base-x, SGMII,
> USXGMII can operate either in a mode where the PHY (be it on-board or
> inside an SFP module) passes the link parameters (speed, duplex, pause)
> to the MAC through in-band through control words standardized by IEEE
> 802.3 clause 37, or in a mode where the MAC must configure (force) its
> link parameters based on information obtained out-of-band (MDIO reads,
> guesswork etc).
>
> In Linux, the OF node property named "managed" is parsed by the phylink
> framework, and the convention is that if a driver uses phylink, then the
> presence of this property means that in-band autoneg should be enabled,
> otherwise it shouldn't.
>
> To be compatible with the OF node bindings of drivers that use phylink
> in Linux, introduce parsing support for this property in U-Boot too.
>
> Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> ---
>  drivers/core/of_extra.c | 12 ++++++++++++
>  include/dm/of_extra.h   | 14 ++++++++++++++
>  2 files changed, 26 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list