Netdev List
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Hans Zhang <18255117159@163.com>
Cc: netdev-bot+sashiko@kernel.org, hkallweit1@gmail.com,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, linux@armlinux.org.uk, netdev@vger.kernel.org
Subject: Re: [PATCH] net: phy: avoid synchronous module request in async probe context
Date: Wed, 25 Nov 2026 14:58:32 +0100	[thread overview]
Message-ID: <24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch> (raw)
In-Reply-To: <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com>

> The High issue is correct: request_module_nowait() would make the PHY
> module load fire-and-forget and could race with phy_device_register()
> and the MAC's !phydev->drv check. I dropped that approach in v2.
> 
> v2 changes phy_request_driver_module() to return -EPROBE_DEFER when
> current_is_async() is true.

Sorry, i missed your patch. I've not looked at the details yet, but
are you sure you are in a context that can return -EPROBE_DEFER. PHY
drivers don't fit the usual driver model :-(

	Andrew

      reply	other threads:[~2026-11-25 13:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:07 [PATCH] net: phy: avoid synchronous module request in async probe context Hans Zhang
2026-11-25  7:37 ` netdev-bot+sashiko
2026-11-25  7:55   ` Hans Zhang
2026-11-25 13:58     ` Andrew Lunn [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=24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=18255117159@163.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev-bot+sashiko@kernel.org \
    --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