lkml.org 
[lkml]   [2018]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v3 02/10] net: mvpp2: phylink support
> @@ -4691,6 +4685,9 @@ static int mvpp2_port_probe(struct platform_device *pdev,
> if (fwnode_property_read_bool(port_fwnode, "marvell,loopback"))
> port->flags |= MVPP2_F_LOOPBACK;
>
> + if (fwnode_property_present(port_fwnode, "fixed-link"))
> + port->flags |= MVPP2_F_FIXED_LINK;
> +

Hi Antoine

There is no need to go look in device tree. When phylink calls
mac_config() it passes mode == MLO_AN_FIXED, when it is using a fixed
link.

Andrew

\
 
 \ /
  Last update: 2018-08-31 16:19    [W:0.123 / U:3.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site