[PATCH 1/4 v2] powerpc: document max-speed and interface-type properties

Andy Fleming afleming at freescale.com
Tue Apr 24 02:58:31 EST 2007


On Apr 21, 2007, at 12:22, Segher Boessenkool wrote:

>>> Sure there's an argument for describing what type of
>>> interface the PHY is connected on, if it supports more
>>> than one -- but that should be a property in the PHY
>>> node, not the controller node, since you can have multiple
>>> PHYs connected to the same controller, possibly on
>>> different interfaces each.
>>
>> I just want to reiterate that I disagree strongly with this  
>> statement.  If you have multiple PHYs hooked up to one ethernet  
>> controller, you're going to need to change the device tree to use  
>> a different PHY, anyway.  That, or have Linux ignore the phandle  
>> that points to the connected PHY.
>
> On some configurations, what PHY to use is a runtime
> decision, not a static thing.  No device tree change
> is necessary then.


1) Could you give me an example?

2) So you'd be having Linux ignore the phandle, then?


>> My point, again, is that the interface type is not strongly tied  
>> to the PHY.  It is strongly tied to the board configuration.  We  
>> *could* put the interface type in the PHY node, but I want to  
>> disabuse you of the notion that it would be any better there.
>
> I still think it's the best place for this information.


I still disagree.  :)

Andy



More information about the Linuxppc-dev mailing list