diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-08-16 14:02:11 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-04-27 16:54:56 +0100 |
commit | d500b6ee03a462980a02ca85030a14a71731f56f (patch) | |
tree | dd9383bf8b2a59bc0e8db17206a1dd44a3ea24c4 /include/net | |
parent | 01b2de1345a8a1e28d1079954f4de41c374899c7 (diff) |
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) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); /* |