mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v1] r8169: set eee_enable_default base on LPI cap
@ 2026-09-16  8:13 javen
  2026-09-20  0:20 ` patchwork-bot+netdevbpf
  2026-09-20  8:26 ` netdev-bot+sashiko
  0 siblings, 2 replies; 3+ messages in thread
From: javen @ 2026-09-16  8:13 UTC (permalink / raw)
  To: hkallweit1, nic_swsd, andrew+netdev, davem, edumazet, kuba,
	pabeni, maxime.chevallier, horms
  Cc: netdev, linux-kernel, daniel, linux, enelsonmoore, daniel, Javen Xu

From: Javen Xu <javen_xu@realsil.com.cn>

When initializing phylink configuration, if LPI capabilities is
non-zero, it indicates the hardware supports EEE, thus we enable it by
default.

Signed-off-by: Javen Xu <javen_xu@realsil.com.cn>
---
 drivers/net/ethernet/realtek/r8169_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index b6f7d212ed77..6923069266f2 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -6583,6 +6583,7 @@ static int rtl_init_phylink(struct rtl8169_private *tp)
 	tp->phylink_config.type = PHYLINK_NETDEV;
 	tp->phylink_config.mac_managed_pm = true;
 	tp->phylink_config.lpi_capabilities = rtl8169_get_lpi_caps(tp);
+	tp->phylink_config.eee_enabled_default = !!tp->phylink_config.lpi_capabilities;
 	tp->phylink_config.mac_capabilities |= MAC_ASYM_PAUSE | MAC_SYM_PAUSE;
 
 	switch (tp->sfp_mode) {
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-20  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16  8:13 [PATCH net-next v1] r8169: set eee_enable_default base on LPI cap javen
2026-09-20  0:20 ` patchwork-bot+netdevbpf
2026-09-20  8:26 ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®