[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220406153443.51ad52f8@kernel.org>
Date: Wed, 6 Apr 2022 15:34:43 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: netdev@...r.kernel.org, Paolo Abeni <pabeni@...hat.com>,
"David S. Miller" <davem@...emloft.net>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
Florian Fainelli <f.fainelli@...il.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Robin Murphy <robin.murphy@....com>
Subject: Re: [PATCH net] net: mdio: don't defer probe forever if PHY IRQ
provider is missing
On Wed, 6 Apr 2022 23:23:23 +0300 Vladimir Oltean wrote:
> diff --git a/drivers/net/mdio/fwnode_mdio.c b/drivers/net/mdio/fwnode_mdio.c
> index 1becb1a731f6..1c1584fca632 100644
> --- a/drivers/net/mdio/fwnode_mdio.c
> +++ b/drivers/net/mdio/fwnode_mdio.c
> @@ -43,6 +43,11 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
> int rc;
>
> rc = fwnode_irq_get(child, 0);
> + /* Don't wait forever if the IRQ provider doesn't become available,
> + * just fall back to poll mode
> + */
> + if (rc == -EPROBE_DEFER)
> + rc = driver_deferred_probe_check_state(&phy->mdio.dev);
This one's not exported, allmodconfig build fails.
Powered by blists - more mailing lists