[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2c7d7e81-322d-c995-7de6-64a25906d280@pengutronix.de>
Date: Mon, 20 Aug 2018 15:45:30 +0200
From: Ahmad Fatoum <a.fatoum@...gutronix.de>
To: Andrew Lunn <andrew@...n.ch>
Cc: "David S. Miller" <davem@...emloft.net>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
kernel@...gutronix.de, netdev@...r.kernel.org, mdf@...nel.org,
Brad Mouring <brad.mouring@...com>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH 3/4] net: macb: Support specifying PHYs in a mdio
container dts node
On 08/20/2018 03:42 PM, Andrew Lunn wrote:
> On Mon, Aug 20, 2018 at 02:12:37PM +0200, Ahmad Fatoum wrote:
> This is correct. But i would prefer the more readable
>
> struct device_node *node = of_get_child_by_name(np, "mdio");
>
> if (!node)
> /* Allow for the deprecated PHYs in the MAC node. */
> node = np;
>
>> if (pdata)
>> bp->mii_bus->phy_mask = pdata->phy_mask;
>> -
>> - err = of_mdiobus_register(bp->mii_bus, np);
>> + err = of_mdiobus_register(bp->mii_bus, node);
>> }
Ok.
> Also, the device tree binding documentation needs updating.
I've done so in part 4/4.
Powered by blists - more mailing lists