Re: [net-next: PATCH 1/3] net: mvmdio: add ACPI support

From: Andrew Lunn
Date: Sun Jun 13 2021 - 15:33:05 EST


> - ret = of_mdiobus_register(bus, pdev->dev.of_node);
> + if (pdev->dev.of_node)
> + ret = of_mdiobus_register(bus, pdev->dev.of_node);
> + else if (is_acpi_node(pdev->dev.fwnode))
> + ret = acpi_mdiobus_register(bus, pdev->dev.fwnode);
> + else
> + ret = -EINVAL;


This seems like something which could be put into fwnode_mdio.c.

Andrew