On 09/07/15 13:43, Stas Sergeev wrote:OK, agree.
09.07.2015 21:24, Florian Fainelli ÐÐÑÐÑ:This seems like a logical consequence of finding a "fixed-link" property
(there is no such thing as linux-net@xxxxxxxxxxxxxxx, please remove itBut what about this part of of_mdio.c:of_phy_register_fixed_link():
from your future submissions).
On 09/07/15 10:38, Stas Sergeev wrote:
Currently for fixed-link the link state is always set to UP.Not quite true, this is always a driver decision to make.
---
fixed_link_node = of_get_child_by_name(np, "fixed-link");
if (fixed_link_node) {
status.link = 1
---
for the DT node of interest. If no such property exist, then we do not
set anything.
"down" is equivalent to using a status = "disabled", in fact the latterThe DTs have a common parts that are included by otherThis patch introduces the new property 'link' that accepts theIn which case you probably do not even care about inserting such a
following string arguments: "up", "down" and "auto".
"down" may be needed if the link is physically unconnected.
property in the first place, do you? What would be the value of forcibly
having a link permanently down (not counting loopback)?
parts. So if you include the definition of your SoC that have
all ethernets defined, and you only set up the external things
like PHYs, then I would see a potential use for "down".
is much better since you can even conserve energy and resources by not
enabling something which is not usable.
Agree!This doesn't work.Then, if the in-band status indication is not reliable (which really
It appears even if the driver supports it and wants to use it, the
PHY HW may simply not generate the inband status. This is actually
the whole point why we have a regression now. It is _currently_
a driver decision, and that doesn't work for some people.
The point of this patch set is to make it a DT decision instead.
should be completely understood),
you can just ignore the in-band statusI don't think there is any way at all to find out if the inband stat is
and use all the parameter in a 'fixed-link' property, should not we?