Netdev List
 help / color / mirror / Atom feed
From: Hans Zhang <18255117159@163.com>
To: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com
Cc: linux@armlinux.org.uk, netdev@vger.kernel.org,
	Hans Zhang <18255117159@163.com>
Subject: [PATCH 1/4] net: ethernet: lantiq_etop: propagate mdiobus_register() errors
Date: Mon, 30 Nov 2026 10:37:42 +0800	[thread overview]
Message-ID: <20261130023745.820141-2-18255117159@163.com> (raw)
In-Reply-To: <20261130023745.820141-1-18255117159@163.com>

mdiobus_register() can return -EPROBE_DEFER.  Return that error instead
of converting every failure to -ENXIO so the driver can defer correctly
when probed from async context.

Signed-off-by: Hans Zhang <18255117159@163.com>
---
 drivers/net/ethernet/lantiq_etop.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index 83ce3bfefa5c2..8c64687c3fd85 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -400,10 +400,9 @@ ltq_etop_mdio_init(struct net_device *dev)
 	priv->mii_bus->name = "ltq_mii";
 	snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
 		 priv->pdev->name, priv->pdev->id);
-	if (mdiobus_register(priv->mii_bus)) {
-		err = -ENXIO;
+	err = mdiobus_register(priv->mii_bus);
+	if (err)
 		goto err_out_free_mdiobus;
-	}
 
 	if (ltq_etop_mdio_probe(dev)) {
 		err = -ENXIO;

base-commit: 25faec9ce61c01fb45abf812a222c5b43c3cd5c5
-- 
2.43.0


  reply	other threads:[~2026-11-30  2:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  2:37 [PATCH 0/4] prepare MDIO callers for -EPROBE_DEFER from __mdiobus_register() Hans Zhang
2026-11-30  2:37 ` Hans Zhang [this message]
2026-12-01  2:46   ` [PATCH 1/4] net: ethernet: lantiq_etop: propagate mdiobus_register() errors netdev-bot+sashiko
2026-11-30  2:37 ` [PATCH 2/4] net: ethernet: smsc911x: " Hans Zhang
2026-12-01  2:46   ` netdev-bot+sashiko
2026-11-30  2:37 ` [PATCH 3/4] net: ethernet: smsc9420: " Hans Zhang
2026-12-01  2:46   ` netdev-bot+sashiko
2026-11-30  2:37 ` [PATCH 4/4] net: use dev_err_probe() for MDIO bus registration errors Hans Zhang
2026-12-01  2:46   ` netdev-bot+sashiko

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=20261130023745.820141-2-18255117159@163.com \
    --to=18255117159@163.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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