Commit b5c5bd38 authored by Linmao Li's avatar Linmao Li Committed by Greg Kroah-Hartman
Browse files

r8169: fix packet truncation after S4 resume on RTL8168H/RTL8111H



[ Upstream commit 70f92ab9 ]

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 ef9da46d ("r8169: fix data
corruption issue on RTL8402").

Fixes: 6e1d0b89 ("r8169:add support for RTL8168H and RTL8107E")
Signed-off-by: default avatarLinmao Li <lilinmao@kylinos.cn>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Reviewed-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/20251009122549.3955845-1-lilinmao@kylinos.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 83efde49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment