linux/drivers/net/ethernet/realtek
Linmao Li 70f92ab970 r8169: fix packet truncation after S4 resume on RTL8168H/RTL8111H
After resume from S4 (hibernate), RTL8168H/RTL8111H truncates incoming
packets. Packet captures show messages like "IP truncated-ip - 146 bytes
missing!".

The issue is caused by RxConfig not being properly re-initialized after
resume. Re-initializing the RxConfig register before the chip
re-initialization sequence avoids the truncation and restores correct
packet reception.

This follows the same pattern as commit ef9da46dde ("r8169: fix data
corruption issue on RTL8402").

Fixes: 6e1d0b8988 ("r8169:add support for RTL8168H and RTL8107E")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/20251009122549.3955845-1-lilinmao@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-13 17:33:56 -07:00
..
rtase rtase: Fix Rx descriptor CRC error bit definition 2025-08-14 17:53:12 -07:00
8139cp.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
8139too.c eth: 8139too: fix calling napi_enable() in atomic context 2025-01-27 14:30:49 -08:00
atp.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
atp.h net: wan: atp: remove unused eeprom_delay() 2022-04-26 17:09:23 -07:00
Kconfig eth: 8139too: Make 8139TOO_PIO depend on !NO_IOPORT_MAP 2025-09-11 18:30:49 -07:00
Makefile realtek: Update the Makefile and Kconfig in the realtek folder 2024-09-05 22:02:39 -07:00
r8169_firmware.c r8169: avoid duplicated messages if loading firmware fails and switch to warn level 2024-10-20 11:06:47 -05:00
r8169_firmware.h r8169: factor out firmware handling 2019-06-05 11:41:59 -07:00
r8169_leds.c r8169: fix LED-related deadlock on module removal 2024-04-10 10:44:29 +01:00
r8169_main.c r8169: fix packet truncation after S4 resume on RTL8168H/RTL8111H 2025-10-13 17:33:56 -07:00
r8169_phy_config.c r8169: add support for RTL8127A 2025-05-16 16:02:34 -07:00
r8169.h r8169: add support for RTL8127A 2025-05-16 16:02:34 -07:00