Re: [PATCH net-next 2/2] net: phy: DP83822: Add ability to advertise Fiber connection

2020-05-14 Thread Dan Murphy
Andrew On 5/14/20 1:52 PM, Andrew Lunn wrote: +static int dp83822_config_init(struct phy_device *phydev) +{ + struct dp83822_private *dp83822 = phydev->priv; + int err = 0; + + if (dp83822->fx_enabled) { + linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, +

Re: [PATCH net-next 2/2] net: phy: DP83822: Add ability to advertise Fiber connection

2020-05-14 Thread Andrew Lunn
> +static int dp83822_config_init(struct phy_device *phydev) > +{ > + struct dp83822_private *dp83822 = phydev->priv; > + int err = 0; > + > + if (dp83822->fx_enabled) { > + linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, > + phydev->supported); >

[PATCH net-next 2/2] net: phy: DP83822: Add ability to advertise Fiber connection

2020-05-14 Thread Dan Murphy
The DP83822 can be configured to use a Fiber connection. The strap register is read to determine if the device has been configured to use a fiber connection. With the fiber connection the PHY can be configured to detect whether the fiber connection is active by either a high signal or a low signa