1 From 57d2d2c8f132c830565058a5cdd8138350e068ec Mon Sep 17 00:00:00 2001
2 From: Heiner Kallweit <hkallweit1@gmail.com>
3 Date: Mon, 12 Feb 2024 19:58:47 +0100
4 Subject: [PATCH] r8169: support setting the EEE tx idle timer on
7 Support setting the EEE tx idle timer also on RTL8168h.
9 Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
10 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
11 Link: https://lore.kernel.org/r/cfb69ec9-24c4-4aad-9909-fdae3088add4@gmail.com
12 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 drivers/net/ethernet/realtek/r8169_main.c | 5 +++++
15 1 file changed, 5 insertions(+)
17 --- a/drivers/net/ethernet/realtek/r8169_main.c
18 +++ b/drivers/net/ethernet/realtek/r8169_main.c
19 @@ -2060,6 +2060,11 @@ static void rtl_set_eee_txidle_timer(str
20 unsigned int timer_val = READ_ONCE(tp->dev->mtu) + ETH_HLEN + 0x20;
22 switch (tp->mac_version) {
23 + case RTL_GIGA_MAC_VER_46:
24 + case RTL_GIGA_MAC_VER_48:
25 + tp->tx_lpi_timer = timer_val;
26 + r8168_mac_ocp_write(tp, 0xe048, timer_val);
28 case RTL_GIGA_MAC_VER_61:
29 case RTL_GIGA_MAC_VER_63:
30 case RTL_GIGA_MAC_VER_65: