diff options
Diffstat (limited to 'drivers/core/of_extra.c')
-rw-r--r-- | drivers/core/of_extra.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c index 632a1c2..59ce917 100644 --- a/drivers/core/of_extra.c +++ b/drivers/core/of_extra.c @@ -155,3 +155,15 @@ bool ofnode_phy_is_fixed_link(ofnode eth_node, ofnode *phy_node) return true; } + +bool ofnode_eth_uses_inband_aneg(ofnode eth_node) +{ + bool inband_aneg = false; + const char *managed; + + managed = ofnode_read_string(eth_node, "managed"); + if (managed && !strcmp(managed, "in-band-status")) + inband_aneg = true; + + return inband_aneg; +} |