Thread (15 messages) 15 messages, 4 authors, 2021-06-15

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

flat view

From: Marcin Wojtas <hidden>
Date: 2021-06-15 15:13:42
Also in: lkml

Hi,

niedz., 13 cze 2021 o 21:20 Andrew Lunn [off-list ref] napisał(a):
quoted
-     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.
Agree - I'll create a simple fwnode_mdiobus_register() helper there.

Best regards,
Marcin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help