Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

r8169: reconfigure rx unconditionally before chip reset when resuming

There's a good chance that more chip versions suffer from the same
hw issue. So let's reconfigure rx unconditionally before the chip reset
when resuming. This shouldn't have any side effect on unaffected chip
versions.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/a5c2e2d2-226f-4896-b8f6-45e2d91f0e24@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
3dc2a17e 2af8ff1e

+1 -3
+1 -3
drivers/net/ethernet/realtek/r8169_main.c
··· 4995 4995 clk_prepare_enable(tp->clk); 4996 4996 4997 4997 /* Some chip versions may truncate packets without this initialization */ 4998 - if (tp->mac_version == RTL_GIGA_MAC_VER_37 || 4999 - tp->mac_version == RTL_GIGA_MAC_VER_46) 5000 - rtl_init_rxcfg(tp); 4998 + rtl_init_rxcfg(tp); 5001 4999 5002 5000 return rtl8169_runtime_resume(device); 5003 5001 }