mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Hans Zhang <18255117159@163.com>
Cc: hkallweit1@gmail.com, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, bhelgaas@google.com,
	mani@kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] PCIe host controller async probe vs PHY request_module deadlock
Date: Fri, 27 Nov 2026 15:59:36 +0100	[thread overview]
Message-ID: <582bbeb8-13ec-4533-92d4-7216c20fb78f@lunn.ch> (raw)
In-Reply-To: <00ca72a9-ff50-4842-8aa9-d68416212e8b@163.com>

> Andrew suggested:
> 
> drivers/pci/controller/cadence/pci-sky1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/controller/cadence/pci-sky1.c
> b/drivers/pci/controller/cadence/pci-sky1.c
> index 82f4ae5c04a8..4448ee3d5e73 100644
> --- a/drivers/pci/controller/cadence/pci-sky1.c
> +++ b/drivers/pci/controller/cadence/pci-sky1.c
> @@ -235,7 +235,7 @@ static struct platform_driver sky1_pcie_driver = {
>  	.driver = {
>  		.name = "sky1-pcie",
>  		.of_match_table = of_sky1_pcie_match,
> -		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
> +		.probe_type = PROBE_FORCE_SYNCHRONOUS,

Sorry, i was ambiguous. I meant the MAC driver should probe
synchronous, not the PCIe bus driver.

I don't know the details, but i assume this is some sort of tree, and
a list. The root node enumerates, and adds to the list of things to be
probed. The device core then has a bunch of workers which take stuff
off the list and does the probe. Those probes can add more things to
the list, and it works its way down the tree. The first iteration will
only pull jobs of the list which have PROBE_PREFER_ASYNCHRONOUS, so
you can prevent branches of the tree from enumerating by setting
PROBE_FORCE_SYNCHRONOUS on the driver at that level in the tree.

So i assume you can mark the MAC driver hanging of the PCIe bus probe
to happen later, while other sorts of PCIe devices probe async?

   Andrew

  reply	other threads:[~2026-11-27 14:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  7:43 Hans Zhang
2026-11-27  8:02 ` Hans Zhang
2026-11-27 14:59   ` Andrew Lunn [this message]
2026-11-27 16:03     ` Hans Zhang
2026-11-27 15:01   ` Shawn Lin
2026-11-27 16:00     ` Hans Zhang
2026-11-27  7:46 Hans Zhang

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=582bbeb8-13ec-4533-92d4-7216c20fb78f@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=18255117159@163.com \
    --cc=bhelgaas@google.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mani@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

all inboxes | Powered by JetHome®