]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
r8169: set EEE speed down ratio to 1
authorChunHao Lin <hau@realtek.com>
Thu, 18 Sep 2025 02:34:25 +0000 (10:34 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Sep 2025 14:07:17 +0000 (07:07 -0700)
commitbf7154ffb1c65a201906296a9d3eb22e9daa5ffc
tree6acb0942340e26c2e80ac7fa849d2a1381e8c266
parenta346e48c1792cbc600fdafc8fb4c0044f7c2ccfe
r8169: set EEE speed down ratio to 1

EEE speed down means speed down MAC MCU clock. It is not from spec.
It is kind of Realtek specific power saving feature. But enable it
may cause some issues, like packet drop or interrupt loss. Different
hardware may have different issues.

EEE speed down ratio (mac ocp 0xe056[7:4]) is used to set EEE speed
down rate. The larger this value is, the more power can save. But it
actually save less power then we expected. And, as mentioned above,
will impact compatibility. So set it to 1 (mac ocp 0xe056[7:4] = 0)
, which means not to speed down, to improve compatibility.

Signed-off-by: ChunHao Lin <hau@realtek.com>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/20250918023425.3463-1-hau@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c