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-02-27 15:37:54 +0000 |
commit | e17b4adfa24683a779851d5054b21fcc73fd5ed5 (patch) | |
tree | 685e82bf7b80d6e686be5f16068aece4f330c134 /include | |
parent | 008702833e08fc53171d73373d7125f8246bbfe5 (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 82135fbdb1e6..55d3a879e44d 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -891,6 +891,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); /* |