Lines Matching +full:mdio +full:- +full:bus
1 // SPDX-License-Identifier: GPL-2.0-only
3 * ACPI helpers for the MDIO (Ethernet PHY) API
19 MODULE_DESCRIPTION("ACPI MDIO bus (Ethernet PHY) accessors");
22 * __acpi_mdiobus_register - Register mii_bus and create PHYs from the ACPI ASL.
23 * @mdio: pointer to mii_bus structure
24 * @fwnode: pointer to fwnode of MDIO bus. This fwnode is expected to represent
25 * @owner: module owning this @mdio object.
26 * an ACPI device object corresponding to the MDIO bus and its children are
27 * expected to correspond to the PHY devices on that bus.
32 int __acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode, in __acpi_mdiobus_register() argument
40 mdio->phy_mask = GENMASK(31, 0); in __acpi_mdiobus_register()
41 ret = __mdiobus_register(mdio, owner); in __acpi_mdiobus_register()
45 ACPI_COMPANION_SET(&mdio->dev, to_acpi_device_node(fwnode)); in __acpi_mdiobus_register()
53 ret = fwnode_mdiobus_register_phy(mdio, child, addr); in __acpi_mdiobus_register()
54 if (ret == -ENODEV) in __acpi_mdiobus_register()
55 dev_err(&mdio->dev, in __acpi_mdiobus_register()
56 "MDIO device at address %d is missing.\n", in __acpi_mdiobus_register()