summaryrefslogtreecommitdiff
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2020-10-20 19:09:11 +0200
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-09-19 13:22:16 +0100
commite77daa70521c36402efe3f87951852358182bc08 (patch)
treeff9395dfe742bf49b565e978245d6b0b22703d22 /include/net/dsa.h
parentb096813a94db41df365a1b9a20e4de7176b185ff (diff)
net: dsa: fill phylink's config supported_interfaces member
Add a new DSA switch operation, phylink_get_interfaces, which should fill in which PHY_INTERFACE_MODE_* are supported by given port. Use this before phylink_create to fill phylink's config supported_interfaces member. This allows for phylink to determine which PHY_INTERFACE_MODE to use with SFP modules. Signed-off-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 33f40c1ec379..07b29d4b4336 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -592,6 +592,8 @@ struct dsa_switch_ops {
/*
* PHYLINK integration
*/
+ void (*phylink_get_interfaces)(struct dsa_switch *ds, int port,
+ unsigned long *supported_interfaces);
void (*phylink_validate)(struct dsa_switch *ds, int port,
unsigned long *supported,
struct phylink_link_state *state);