[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YMZaZx3oZ7tYCEPH@lunn.ch>
Date: Sun, 13 Jun 2021 21:20:07 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Marcin Wojtas <mw@...ihalf.com>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
davem@...emloft.net, kuba@...nel.org, linux@...linux.org.uk,
jaz@...ihalf.com, gjb@...ihalf.com, upstream@...ihalf.com,
Samer.El-Haj-Mahmoud@....com, jon@...id-run.com
Subject: Re: [net-next: PATCH 1/3] net: mvmdio: add ACPI support
> - 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
Powered by blists - more mailing lists