Re: [net-next RFC PATCH v5 4/6] net: phy: introduce genphy_match_phy_device()

From
Russell King (Oracle) <linux@armlinux.org.uk>
Date
2025-04-01 17:56:43
Also in
linux-devicetree, lkml
Reply to
Christian Marangi, 2025-04-01
On Tue, Apr 01, 2025 at 01:46:05PM +0200, Christian Marangi wrote:
Introduce new API, genphy_match_phy_device(), to provide a way to check
to match a PHY driver for a PHY device based on the info stored in the
PHY device struct.

The function generalize the logic used in phy_bus_match() to check the
PHY ID whether if C45 or C22 ID should be used for matching.

This is useful for custom .match_phy_device function that wants to use
the generic logic under some condition. (example a PHY is already setup
and provide the correct PHY ID)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Russell King (Oracle) <redacted>

Thanks!

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Thread (9 messages) 9 messages, 2 authors, last reply 2025-04-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help