Commit 50e6c7a
committed
net: cadence: macb: add ethtool EEE support
Implement ethtool get_eee and set_eee operations for the Cadence GEM
MAC, delegating to phylink for PHY-level EEE negotiation state.
The MAC-level LPI control (TXLPIEN) is not manipulated directly in the
ethtool ops. Instead, phylink_ethtool_set_eee() updates the PHY's EEE
advertisement, which triggers link renegotiation. The mac_link_up
callback then checks the negotiated EEE state and enables LPI
accordingly.
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>1 parent e2b60f3 commit 50e6c7a
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3610 | 3610 | | |
3611 | 3611 | | |
3612 | 3612 | | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
3613 | 3649 | | |
3614 | 3650 | | |
3615 | 3651 | | |
| |||
4025 | 4061 | | |
4026 | 4062 | | |
4027 | 4063 | | |
| 4064 | + | |
| 4065 | + | |
4028 | 4066 | | |
4029 | 4067 | | |
4030 | 4068 | | |
| |||
0 commit comments