net: mdio: scan bus based on bus capabilities for C22 and C45
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Jan 2023 10:01:38 +0000 (11:01 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Jan 2023 15:23:19 +0000 (16:23 +0100)
commit1a136ca2e089d91df8eec0a796a324171373ffd8
tree2dda64086f24700912d444a26f9a74e3b8b1710c
parent3486593374858b41ae6ef7720cb28ff39ad822f3
net: mdio: scan bus based on bus capabilities for C22 and C45

Now that all MDIO bus drivers which set probe_capabilities to
MDIOBUS_C22_C45 have been converted to use the name API for C45
transactions, perform the scanning of the bus based on which methods
the bus provides.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/mdio_bus.c