summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/b53/b53_serdes.h
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-02-22 10:16:02 +0000
committerDavid S. Miller <davem@davemloft.net>2022-02-22 11:03:02 +0000
commitdda1c25751fa22ecbfa8eaa17efb296ff5017408 (patch)
tree4dddcd4f9de403db7bf4d89ce0c1843504aafd6a /drivers/net/dsa/b53/b53_serdes.h
parent341b672c99b9e69d7e8695979cb8a93f6ae58500 (diff)
net: dsa: b53: populate supported_interfaces and mac_capabilities
Populate the supported interfaces and MAC capabilities for the Broadcom B53 DSA switches in preparation to using these for the generic validation functionality. The interface modes are derived from: - b53_serdes_phylink_validate() - SRAB mux configuration 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/b53/b53_serdes.h')
-rw-r--r--drivers/net/dsa/b53/b53_serdes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_serdes.h b/drivers/net/dsa/b53/b53_serdes.h
index 55d280fe38e4..8fa24f7001aa 100644
--- a/drivers/net/dsa/b53/b53_serdes.h
+++ b/drivers/net/dsa/b53/b53_serdes.h
@@ -115,6 +115,8 @@ void b53_serdes_config(struct b53_device *dev, int port, unsigned int mode,
void b53_serdes_an_restart(struct b53_device *dev, int port);
void b53_serdes_link_set(struct b53_device *dev, int port, unsigned int mode,
phy_interface_t interface, bool link_up);
+void b53_serdes_phylink_get_caps(struct b53_device *dev, int port,
+ struct phylink_config *config);
void b53_serdes_phylink_validate(struct b53_device *dev, int port,
unsigned long *supported,
struct phylink_link_state *state);