summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-11-22 13:13:58 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-01-18 10:17:15 +0000
commit80cc658950abaa5cf695a1e4f3bb7e1bd83f048f (patch)
tree4b6141533e15e82f605cbec41a5912694ef5f3f6 /include
parent0f64541eab83948ec06aa36c39a0a1efc864e004 (diff)
net: dsa: add support for new phylink calls
Add DSA support for the phylink mac_prepare() and mac_finish() calls. These were introduced last year at phylink level as part of the PCS support. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/net/dsa.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 39c90ce2309e..73c1a351e208 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -650,9 +650,15 @@ struct dsa_switch_ops {
phy_interface_t iface);
int (*phylink_mac_link_state)(struct dsa_switch *ds, int port,
struct phylink_link_state *state);
+ int (*phylink_mac_prepare)(struct dsa_switch *ds, int port,
+ unsigned int mode,
+ phy_interface_t interface);
void (*phylink_mac_config)(struct dsa_switch *ds, int port,
unsigned int mode,
const struct phylink_link_state *state);
+ int (*phylink_mac_finish)(struct dsa_switch *ds, int port,
+ unsigned int mode,
+ phy_interface_t interface);
void (*phylink_mac_an_restart)(struct dsa_switch *ds, int port);
void (*phylink_mac_link_down)(struct dsa_switch *ds, int port,
unsigned int mode,