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

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

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-06-13 19:21:04
Also in: lkml

quoted hunk ↗ jump to hunk
-	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help