[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5355750a-5352-89cd-6444-830654c251ba@pengutronix.de>
Date: Mon, 20 Aug 2018 14:31:03 +0200
From: Ahmad Fatoum <a.fatoum@...gutronix.de>
To: Andrew Lunn <andrew@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Nicolas Ferre <nicolas.ferre@...rochip.com>
Cc: netdev@...r.kernel.org, Florian Fainelli <f.fainelli@...il.com>,
mdf@...nel.org, kernel@...gutronix.de,
Brad Mouring <brad.mouring@...com>
Subject: Re: [PATCH 2/4] of: phy: Warn about unexpected fixed-links in
of_mdiobus_register
On 08/20/2018 02:12 PM, Ahmad Fatoum wrote:
> /* Loop over the child nodes and register a phy_device for each phy */
> for_each_available_child_of_node(np, child) {
> + if (of_phy_is_fixed_link(np)) {
> + /* fixed-links are handled in the MAC drivers */
> + dev_warn(&mdio->dev, FW_BUG
> + "Skipping unexpected fixed-link in device tree");
> + continue;
> + }
> +
This would emit the warning even for normal PHYs,
because of_phy_is_fixed_link looks up a child...
I will correct this in v3 along with any other potential suggestions.
Powered by blists - more mailing lists