From: Russell King (Oracle) Date: Tue, 16 Nov 2021 10:09:31 +0000 (+0000) Subject: net: ocelot_net: populate supported_interfaces member X-Git-Tag: v6.6.17~8491^2~431^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ea8c5b492d4e593c64d71c986c320faade69e17;p=platform%2Fkernel%2Flinux-rpi.git net: ocelot_net: populate supported_interfaces member Populate the phy interface mode bitmap for the MSCC Ocelot driver with the interface modes supported by the MAC. Signed-off-by: Russell King (Oracle) Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mscc/ocelot_net.c b/drivers/net/ethernet/mscc/ocelot_net.c index eaeba60..37c158d 100644 --- a/drivers/net/ethernet/mscc/ocelot_net.c +++ b/drivers/net/ethernet/mscc/ocelot_net.c @@ -1655,6 +1655,9 @@ static int ocelot_port_phylink_create(struct ocelot *ocelot, int port, priv->phylink_config.dev = &priv->dev->dev; priv->phylink_config.type = PHYLINK_NETDEV; + __set_bit(ocelot_port->phy_mode, + priv->phylink_config.supported_interfaces); + phylink = phylink_create(&priv->phylink_config, of_fwnode_handle(portnp), phy_mode, &ocelot_phylink_ops);