summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mt7530.h
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-04-11 10:46:06 +0100
committerPaolo Abeni <pabeni@redhat.com>2022-04-12 10:33:15 +0200
commit26f6d881028281094203a49869121f727ec52bfa (patch)
treeb520b9f831bc4a4b769ec11c7bc1eee657b7be2c /drivers/net/dsa/mt7530.h
parent59c2215f36040ac0040f9cfb6fbcc4cb2a705f11 (diff)
downloadlinux-26f6d881028281094203a49869121f727ec52bfa.tar.gz
linux-26f6d881028281094203a49869121f727ec52bfa.tar.bz2
linux-26f6d881028281094203a49869121f727ec52bfa.zip
net: dsa: mt7530: remove interface checks
As phylink checks the interface mode against the supported_interfaces bitmap, we no longer need to validate the interface mode, nor handle PHY_INTERFACE_MODE_NA in the validation function. Remove these to simplify the implementation. Tested-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/dsa/mt7530.h')
-rw-r--r--drivers/net/dsa/mt7530.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/mt7530.h b/drivers/net/dsa/mt7530.h
index e285b68ba354..cbebbcc76509 100644
--- a/drivers/net/dsa/mt7530.h
+++ b/drivers/net/dsa/mt7530.h
@@ -771,8 +771,6 @@ struct mt753x_info {
int (*cpu_port_config)(struct dsa_switch *ds, int port);
void (*mac_port_get_caps)(struct dsa_switch *ds, int port,
struct phylink_config *config);
- bool (*phy_mode_supported)(struct dsa_switch *ds, int port,
- const struct phylink_link_state *state);
void (*mac_port_validate)(struct dsa_switch *ds, int port,
unsigned long *supported);
int (*mac_port_get_state)(struct dsa_switch *ds, int port,