mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Linkui Xiao <xiaolinkui@126.com>
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, rosenp@gmail.com,
	jacob.e.keller@intel.com, daniel.machon@microchip.com,
	chunkeey@gmail.com, kees+treewide@kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	xiaolinkui@kylinos.cn
Subject: Re: [PATCH net] net: ibm: emac: attach the fixed-link PHY with of_phy_connect()
Date: Mon, 23 Nov 2026 15:54:06 +0100	[thread overview]
Message-ID: <4ed4f82b-3ff8-467b-9127-bdc29d498ae4@lunn.ch> (raw)
In-Reply-To: <20261123091012.730441-1-xiaolinkui@126.com>

> of_phy_connect() only stores the handler in phydev->adjust_link, attach
> never calls it. The state machine is not started on this path either -
> emac_mdio_init_phy() runs only for the phy-handle case - so nothing else
> fills in dev->phy, which emac_configure() reads to build MR1. A fixed link
> cannot change, so calling it once is enough.

The whole point of fixed-link is that it works like a real PHY. You
should not special case it other than when creating it and destroying
it. You should call phy_start/phy_stop. When start is called, phylib
will call the adjust link callback, same as a real PHY, and setup the
MAC as needed.

    Andrew

  reply	other threads:[~2026-11-23 14:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12  7:53 Linkui Xiao
2026-11-13 13:50 ` Andrew Lunn
2026-11-23  9:10   ` Linkui Xiao
2026-11-23 14:54     ` Andrew Lunn [this message]
2026-11-16 13:51 ` netdev-bot+sashiko
2026-11-23  9:20   ` Linkui Xiao

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=4ed4f82b-3ff8-467b-9127-bdc29d498ae4@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=andrew+netdev@lunn.ch \
    --cc=chunkeey@gmail.com \
    --cc=daniel.machon@microchip.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=jacob.e.keller@intel.com \
    --cc=kees+treewide@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rosenp@gmail.com \
    --cc=xiaolinkui@126.com \
    --cc=xiaolinkui@kylinos.cn \
    /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

all inboxes | Powered by JetHome®