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-30 09:14:43 +0100 |
commit | d95ed8cd8fd7cffdef9eec8bdfbba53f0b5edca6 (patch) | |
tree | 388ad7c1191d87cca1c380dd424d2335d890c4a0 /include | |
parent | a746d4cf16d28c96c0fc017f2d739324e92ffc97 (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')
-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); /* |