From d500b6ee03a462980a02ca85030a14a71731f56f Mon Sep 17 00:00:00 2001 From: "Russell King (Oracle)" Date: Wed, 16 Aug 2023 14:02:11 +0100 Subject: net: dsa: add support for phylink managed EEE Add support to allow DSA drivers to use phylink managed EEE, with only needing support for controlling the LPI state. Signed-off-by: Russell King (Oracle) --- include/net/dsa.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/net') diff --git a/include/net/dsa.h b/include/net/dsa.h index ca61af087b8c..340f04d21cd1 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -902,6 +902,9 @@ struct dsa_switch_ops { struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause); + void (*phylink_mac_disable_tx_lpi)(struct dsa_switch *ds, int port); + void (*phylink_mac_enable_tx_lpi)(struct dsa_switch *ds, int port, + u32 timer); void (*phylink_fixed_state)(struct dsa_switch *ds, int port, struct phylink_link_state *state); /* -- cgit