u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: Vladimir Oltean <vladimir.oltean@nxp.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Joe Hershberger <joe.hershberger@ni.com>,
	 Ramon Fried <rfried.dev@gmail.com>,
	Priyanka Jain <priyanka.jain@nxp.com>,
	 Michael Walle <michael@walle.cc>
Subject: Re: [PATCH v2 04/10] net: introduce a helper to determine whether to use in-band autoneg
Date: Thu, 30 Sep 2021 07:20:59 +0800	[thread overview]
Message-ID: <CAEUhbmUxW4wnD-hwygXzU7_0hKmB8n_Cc8xfUWmjG_mhVq3a3w@mail.gmail.com> (raw)
In-Reply-To: <20210929150445.1593364-5-vladimir.oltean@nxp.com>

On Wed, Sep 29, 2021 at 11:05 PM Vladimir Oltean
<vladimir.oltean@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@nxp.com>
> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
> ---
> v1->v2: none
>
>  drivers/core/of_extra.c | 12 ++++++++++++
>  include/dm/of_extra.h   | 14 ++++++++++++++
>  2 files changed, 26 insertions(+)
>

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

  reply	other threads:[~2021-09-29 23:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 15:04 [PATCH v2 00/10] Support the SJA1105 DSA switch on the NXP LS1021A-TSN board Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 01/10] net: tsec: add support for promiscuous mode Vladimir Oltean
2021-10-16 18:30   ` Ramon Fried
2021-10-28 18:45     ` Ramon Fried
2021-10-30  7:45       ` Ramon Fried
2021-09-29 15:04 ` [PATCH v2 02/10] include: import if_vlan.h from Linux Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 03/10] net: dsa: allow drivers to get the port OF node Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 04/10] net: introduce a helper to determine whether to use in-band autoneg Vladimir Oltean
2021-09-29 23:20   ` Bin Meng [this message]
2021-10-16 18:28     ` Ramon Fried
2021-09-29 15:04 ` [PATCH v2 05/10] net: dsa: felix: configure the in-band autoneg property based on OF node info Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 06/10] net: dsa: add driver for NXP SJA1105 L2 switch Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 07/10] net: dsa: sja1105: add support for SGMII Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 08/10] arm: dts: ls1021a-tsn: add sja1105 and eth2 bindings Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 09/10] configs: ls1021a-tsn: enable sja1105 switch driver Vladimir Oltean
2021-09-29 15:04 ` [PATCH v2 10/10] configs: ls1021a-tsn: enable the generation of random Ethernet MAC addresses Vladimir Oltean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEUhbmUxW4wnD-hwygXzU7_0hKmB8n_Cc8xfUWmjG_mhVq3a3w@mail.gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=joe.hershberger@ni.com \
    --cc=michael@walle.cc \
    --cc=priyanka.jain@nxp.com \
    --cc=rfried.dev@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).