mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>,
	 Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: [PATCH] net: phy: defer PHY reset settle time off the boot path
Date: Mon, 27 Jul 2026 15:03:14 +0200	[thread overview]
Message-ID: <178515739426.373880.5458873630053506825.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20260710102638.1640479-1-s.hauer@pengutronix.de>


On Fri, 10 Jul 2026 12:26:38 +0200, Sascha Hauer wrote:
> of_mdiobus_register() reset each PHY by asserting its reset GPIO, waiting
> the full reset-assert and reset-deassert delays inline, and only then
> registering the PHY (which reads its ID over MDIO). Waiting for the
> reset deassert adds to the startup time, so do it asynchronously
> 
> Split the reset so the (usually short) assert pulse is still done inline,
> but the potentially long deassert settle time is not waited for at reset
> time. of_mdiobus_reset_phy() now returns the point in time at which the
> PHY becomes usable and the PHY is queued on a per-bus deferred list
> instead of being registered immediately. The actual registration, and
> with it the wait for the remaining settle time, happens on first access
> to the bus via mdiobus_flush_deferred(), hooked into mdiobus_scan() and
> eth_open_all(). This lets the settle time elapse in the background while
> the rest of boot proceeds; by the time the PHY is first accessed the wait
> is usually already over.
> 
> [...]

Applied, thanks!

[1/1] net: phy: defer PHY reset settle time off the boot path
      https://git.pengutronix.de/cgit/barebox/commit/?id=efdbd65cbfd5 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




      reply	other threads:[~2026-07-27 13:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10 10:26 Sascha Hauer
2026-07-27 13:03 ` Sascha Hauer [this message]

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=178515739426.373880.5458873630053506825.b4-ty@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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