[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1510190521370.27515@linux-builds1>
Date: Mon, 19 Oct 2015 10:14:21 -0500
From: Dinh Nguyen <dinguyen@...nsource.altera.com>
To: Andrew Lunn <andrew@...n.ch>
CC: David Daney <ddaney@...iumnetworks.com>,
Florian Fainelli <f.fainelli@...il.com>,
"David S. Miller" <davem@...emloft.net>, <david.daney@...ium.com>,
<peppe.cavallaro@...com>, <srinivas.kandagatla@...il.com>,
<maxime.coquelin@...com>, <patrice.chotard@...com>,
<heiko@...ech.de>, <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: SoCFPGA ethernet broken
+CC Giuseppe Cavallaro
+CC STi and Rockchip Maintainers
This is approaching beyond my breadth of knowledge on this subject, so I just
wanted to get some further insight.
On Fri, 16 Oct 2015, Andrew Lunn wrote:
> > > Maybe we need to walk up the hierarchy.
> > >
> > > Perhaps something like:
> > >
> > > const struct device *dev_walker;
> > >
> > > dev_walker = &phydev->dev;
> > > do {
> > > of_node = dev_walker->of_node;
> > > dev_walker = dev_walker->parent;
> > > } while (!of_node && dev_walker);
> > >
> >
> > The above code seems to have fixed the issue.
>
> What i don't like about this is that it allows you to put these
> properties in the mdio device node. These are phy properties, not mdio
> properties....
>
AFAICT, the stmmac driver is allowing for the phy node to be part of the mdio.
In the function, stmmac_init_phy(), there is a separate check of a standalone
phy_node, and the case where the phy is part of the mdio.
commit "8b63ec1837fa phylib: Make PHYs children of their MDIO bus, not
the bus' parent." is now placing a hard requirement to have a PHY as a
separate node. For now this is only breaking SoCFPGA, but perhaps might
have affected STi41x and RockChip, but maybe haven't been spotted because
perhaps the testing has the bootloader setting up the PHYs?
> If phydev->attached_dev->dev->of_node works, that would be my
> preference.
>
BR,
Dinh
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists