[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <676cc9cb-6f6c-45c3-9f6d-e73747661de6@lunn.ch>
Date: Sat, 22 Mar 2025 16:49:01 +0100
From: Andrew Lunn <andrew@...n.ch>
To: hfdevel@....net
Cc: Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
FUJITA Tomonori <fujita.tomonori@...il.com>,
Andrew Lunn <andrew+netdev@...n.ch>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v7 1/7] net: phy: Add swnode support to
mdiobus_scan
On Sat, Mar 22, 2025 at 11:45:52AM +0100, Hans-Frieder Vogt via B4 Relay wrote:
> From: Hans-Frieder Vogt <hfdevel@....net>
>
> This patch will allow to use a swnode/fwnode defined for a phy_device. The
> MDIO bus (mii_bus) needs to contain nodes for the PHY devices, named
> "ethernet-phy@i", with i being the MDIO address (0 .. PHY_MAX_ADDR - 1).
>
> The fwnode is only attached to the phy_device if there isn't already an
> fwnode attached.
>
> fwnode_get_named_child_node will increase the usage counter of the fwnode.
> However, no new code is needed to decrease the counter again, since this is
> already implemented in the phy_device_release function.
>
> Signed-off-by: Hans-Frieder Vogt <hfdevel@....net>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists