Skip to content

Commit 3dc2a17

Browse files
hkallweitkuba-moo
authored andcommitted
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 <[email protected]> Signed-off-by: Heiner Kallweit <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2af8ff1 commit 3dc2a17

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,9 +4995,7 @@ static int rtl8169_resume(struct device *device)
49954995
clk_prepare_enable(tp->clk);
49964996

49974997
/* 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);
50014999

50025000
return rtl8169_runtime_resume(device);
50035001
}

0 commit comments

Comments
 (0)