diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-11-16 11:09:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-17 12:25:45 +0100 |
commit | a6f5248bc0a36ea1cbd0e04a8a744dc449022503 (patch) | |
tree | 95af67b0f0e8d20d43eb4679b6378096beb58b57 /drivers/net/ethernet/mscc | |
parent | net: ocelot_net: populate supported_interfaces member (diff) | |
download | linux-a6f5248bc0a36ea1cbd0e04a8a744dc449022503.tar.xz linux-a6f5248bc0a36ea1cbd0e04a8a744dc449022503.zip |
net: ocelot_net: remove interface checks in macb_validate()
As phylink checks the interface mode against the supported_interfaces
bitmap, we no longer need to validate the interface mode in the
validation function. Remove this to simplify it.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_net.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_net.c b/drivers/net/ethernet/mscc/ocelot_net.c index 37c158df60ce..21df548dcf64 100644 --- a/drivers/net/ethernet/mscc/ocelot_net.c +++ b/drivers/net/ethernet/mscc/ocelot_net.c @@ -1502,17 +1502,8 @@ static void vsc7514_phylink_validate(struct phylink_config *config, unsigned long *supported, struct phylink_link_state *state) { - struct net_device *ndev = to_net_dev(config->dev); - struct ocelot_port_private *priv = netdev_priv(ndev); - struct ocelot_port *ocelot_port = &priv->port; __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = {}; - if (state->interface != PHY_INTERFACE_MODE_NA && - state->interface != ocelot_port->phy_mode) { - linkmode_zero(supported); - return; - } - phylink_set_port_modes(mask); phylink_set(mask, Pause); |