mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
net: mdiobus: Introduce fwnode_mdiobus_register_phy()
Introduce fwnode_mdiobus_register_phy() to register PHYs on the mdiobus. From the compatible string, identify whether the PHY is c45 and based on this create a PHY device instance which is registered on the mdiobus. Along with fwnode_mdiobus_register_phy() also introduce fwnode_find_mii_timestamper() and fwnode_mdiobus_phy_device_register() since they are needed. While at it, also use the newly introduced fwnode operation in of_mdiobus_phy_device_register(). Signed-off-by: Calvin Johnson <calvin.johnson@oss.nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Acked-by: Grant Likely <grant.likely@arm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b9926da003
commit
bc1bee3b87
@@ -19,6 +19,13 @@ config MDIO_BUS
|
||||
reflects whether the mdio_bus/mdio_device code is built as a
|
||||
loadable module or built-in.
|
||||
|
||||
config FWNODE_MDIO
|
||||
def_tristate PHYLIB
|
||||
depends on (ACPI || OF) || COMPILE_TEST
|
||||
select FIXED_PHY
|
||||
help
|
||||
FWNODE MDIO bus (Ethernet PHY) accessors
|
||||
|
||||
config OF_MDIO
|
||||
def_tristate PHYLIB
|
||||
depends on OF
|
||||
|
||||
Reference in New Issue
Block a user