mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Oleksij Rempel <>
Cc: Oleksij Rempel <>
Subject: [PATCH v1] net: dsa: wait until PHY aneg is done
Date: Wed, 27 Apr 2022 09:33:40 +0200	[thread overview]
Message-ID: <> (raw)

Some PHYs need a bit longer to complete auto negotiation. So, wait long
enough until this process is done.

Signed-off-by: Oleksij Rempel <>
 drivers/net/dsa.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/dsa.c b/drivers/net/dsa.c
index f2420d306f..d9e629cefc 100644
--- a/drivers/net/dsa.c
+++ b/drivers/net/dsa.c
@@ -111,6 +111,10 @@ static int dsa_port_start(struct eth_device *edev)
+	ret = phy_wait_aneg_done(dp->edev.phydev);
+	if (ret)
+		return ret;
 	if (ops->port_enable) {
 		ret = ops->port_enable(dp, dp->index, dp->edev.phydev);
 		if (ret)

barebox mailing list

             reply	other threads:[~2022-04-27  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27  7:33 Oleksij Rempel [this message]
2022-04-29  7:17 ` Sascha Hauer

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:

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

  git send-email \ \ \ \
    --subject='Re: [PATCH v1] net: dsa: wait until PHY aneg is done' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox