Thread (9 messages) flat view 9 messages, 5 authors, 2018-08-20

Re: [PATCH] net: macb: Fix regression breaking non-MDIO fixed-link PHYs

From: Ahmad Fatoum <a.fatoum@pengutronix.de>
Date: 2018-08-20 15:33:00
Also in: netdev

On 08/16/2018 04:24 PM, Andrew Lunn wrote:
1) A regression. We should find a fix for that. Maybe we should
   special case a child node called 'fixed-link' in
   of_mdiobus_register(). I would suggest adding a single warning if
   such node is found.
I just sent out a v2, which warns if fixed-link is encountered
in of_mdiobus_register(). The actual fixed-link handling remains in the
macb driver, because I think it's would be out of scope for a regression
fix to change where fixed-links are handled for all using drivers...
2) Missing functionality. Add support for an mdio container node. 

        node = of_get_child_by_name(np, "mdio");
        if (node)
		err = of_mdiobus_register(bp->mii_bus, node);
        else 
		err = of_mdiobus_register(bp->mii_bus, np);
Done.
 
3) Modify the existing dts files to make use of this container.
   Because of backwards compatibility, we cannot force the use of it,
   but we can encourage it.
Done as well.

Cheers
Ahmad
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help