[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180725152857.GB16819@lunn.ch>
Date: Wed, 25 Jul 2018 17:28:57 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Hauke Mehrtens <hauke@...ke-m.de>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
vivien.didelot@...oirfairelinux.com, f.fainelli@...il.com,
john@...ozen.org, linux-mips@...ux-mips.org, dev@...sin.me,
hauke.mehrtens@...el.com
Subject: Re: [PATCH 3/4] net: lantiq: Add Lantiq / Intel vrx200 Ethernet
driver
> + /* Make sure the firmware of the embedded GPHY is loaded before,
> + * otherwise they will not be detectable on the MDIO bus.
> + */
> + of_for_each_phandle(&it, err, np, "lantiq,phys", NULL, 0) {
> + phy_np = it.node;
> + if (phy_np) {
> + struct platform_device *phy = of_find_device_by_node(phy_np);
> +
> + of_node_put(phy_np);
> + if (!platform_get_drvdata(phy))
> + return -EPROBE_DEFER;
> + }
> + }
Is there a device tree binding document for this somewhere?
Andrew
Powered by blists - more mailing lists