OSDN Git Service

net: phylib: ensure phy device drivers do not match by DT
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 7 Oct 2021 13:23:32 +0000 (14:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 14:21:25 +0000 (15:21 +0100)
commit2b12d51c4fa8dab6a879681cbf52f30e667c928c
treead2e0338dc1961fcc02127b67be77059d34d89fc
parent94114d90037fe730bab5ea76d388bc294034fa39
net: phylib: ensure phy device drivers do not match by DT

PHYLIB device drivers must match by either numerical PHY ID or by their
.match_phy_device method. Matching by DT is not permitted.

Link: https://lore.kernel.org/r/2b1dc053-8c9a-e3e4-b450-eecdfca3fe16@gmail.com
Tested-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c