Re: [PATCH 1/5] phylib: don't create a phydev for ID-less PHYs.

From: Grant Likely
Date: Fri Apr 11 2008 - 09:54:11 EST


On Fri, Apr 11, 2008 at 4:47 AM, Joakim Tjernlund
<joakim.tjernlund@xxxxxxxxxxxx> wrote:
>
> On Fri, 2008-04-11 at 10:06 +0200, Stefan Roese wrote:
> > On Friday 11 April 2008, Joakim Tjernlund wrote:
> > > PHY ID 0x0 isn't an invalid id, I got a Broadcom PHY that has
> > > PHY ID=0. Maybe I am misunderstanding something?
> >
> > IIRC, address 0 is the PHY broadcast address, but can be used without problem
> > with some PHY's. I remember some designs were we had the PHY at address 0.
>
> Ouh, if that is so, I guess we need a CONFIG option or a new mdio bus
> property to select if PHY ID 0 is valid id or not.

Or, don't probe for phys by default. Rather, use the data in the
device tree to determine what PHY ids are valid.

Cheers,
g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html