diff options
| author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-02-25 16:19:30 +0000 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-02-26 12:44:28 +0000 |
| commit | e57a15401e820b56c17bf9128245131cbee74c42 (patch) | |
| tree | 619cfeef0f33d13e7a75fa5327c1f13020e93f0c /drivers/net/dsa/ocelot/seville_vsc9953.c | |
| parent | 79fda660bdbba839f434cf8674ff4a20d88fbeb2 (diff) | |
| download | linux-e57a15401e820b56c17bf9128245131cbee74c42.tar.gz linux-e57a15401e820b56c17bf9128245131cbee74c42.tar.bz2 linux-e57a15401e820b56c17bf9128245131cbee74c42.zip | |
net: dsa: ocelot: remove interface checks
When the supported interfaces bitmap is populated, phylink will itself
check that the interface mode is present in this bitmap. Drivers no
longer need to perform this check themselves. Remove these checks.
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
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/dsa/ocelot/seville_vsc9953.c')
| -rw-r--r-- | drivers/net/dsa/ocelot/seville_vsc9953.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index f2f1608a476c..f12c1a1a3d5c 100644 --- a/drivers/net/dsa/ocelot/seville_vsc9953.c +++ b/drivers/net/dsa/ocelot/seville_vsc9953.c @@ -917,15 +917,8 @@ static void vsc9953_phylink_validate(struct ocelot *ocelot, int port, unsigned long *supported, struct phylink_link_state *state) { - struct ocelot_port *ocelot_port = ocelot->ports[port]; __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, }; - 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, Autoneg); phylink_set(mask, Pause); |
