Skip to content

Commit ef9da46

Browse files
hkallweitdavem330
authored andcommitted
r8169: fix data corruption issue on RTL8402
Petr reported that after resume from suspend RTL8402 partially truncates incoming packets, and re-initializing register RxConfig before the actual chip re-initialization sequence is needed to avoid the issue. Reported-by: Petr Tesarik <ptesarik@suse.cz> Proposed-by: Petr Tesarik <ptesarik@suse.cz> Tested-by: Petr Tesarik <ptesarik@suse.cz> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bb13a80 commit ef9da46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/realtek/r8169_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4854,6 +4854,10 @@ static int __maybe_unused rtl8169_resume(struct device *device)
48544854
if (!device_may_wakeup(tp_to_dev(tp)))
48554855
clk_prepare_enable(tp->clk);
48564856

4857+
/* Reportedly at least Asus X453MA truncates packets otherwise */
4858+
if (tp->mac_version == RTL_GIGA_MAC_VER_37)
4859+
rtl_init_rxcfg(tp);
4860+
48574861
return rtl8169_net_resume(tp);
48584862
}
48594863

0 commit comments

Comments
 (0)