Re: [RFC PATCH net-next 12/24] of: phy: Only register a phy device for phys

2016-01-04 Thread Andrew Lunn
On Mon, Jan 04, 2016 at 12:01:04PM -0800, Florian Fainelli wrote: > On 04/01/16 09:36, Andrew Lunn wrote: > > We will soon support devices other than phys on the mdio bus. Look at > > a child's compatibility string to determine if it is a phy, before > > registering a phy device. > > > > Signed-of

Re: [RFC PATCH net-next 12/24] of: phy: Only register a phy device for phys

2016-01-04 Thread Florian Fainelli
On 04/01/16 09:36, Andrew Lunn wrote: > We will soon support devices other than phys on the mdio bus. Look at > a child's compatibility string to determine if it is a phy, before > registering a phy device. > > Signed-off-by: Andrew Lunn > --- [snip] > + if (of_get_phy_id(child, &phy_id) !=

[RFC PATCH net-next 12/24] of: phy: Only register a phy device for phys

2016-01-04 Thread Andrew Lunn
We will soon support devices other than phys on the mdio bus. Look at a child's compatibility string to determine if it is a phy, before registering a phy device. Signed-off-by: Andrew Lunn --- drivers/of/of_mdio.c | 37 ++--- 1 file changed, 30 insertions(+), 7 d