Commit 136a3fa2 authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by David S. Miller

net: axienet: populate supported_interfaces member

Populate the phy_interface_t bitmap for the Xilinx axienet driver with
interfaces modes supported by the MAC.
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 01dd7424
...@@ -2105,6 +2105,14 @@ static int axienet_probe(struct platform_device *pdev) ...@@ -2105,6 +2105,14 @@ static int axienet_probe(struct platform_device *pdev)
lp->phylink_config.dev = &ndev->dev; lp->phylink_config.dev = &ndev->dev;
lp->phylink_config.type = PHYLINK_NETDEV; lp->phylink_config.type = PHYLINK_NETDEV;
__set_bit(lp->phy_mode, lp->phylink_config.supported_interfaces);
if (lp->switch_x_sgmii) {
__set_bit(PHY_INTERFACE_MODE_1000BASEX,
lp->phylink_config.supported_interfaces);
__set_bit(PHY_INTERFACE_MODE_SGMII,
lp->phylink_config.supported_interfaces);
}
lp->phylink = phylink_create(&lp->phylink_config, pdev->dev.fwnode, lp->phylink = phylink_create(&lp->phylink_config, pdev->dev.fwnode,
lp->phy_mode, lp->phy_mode,
&axienet_phylink_ops); &axienet_phylink_ops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment