mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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>
This commit is contained in:
parent
2af8ff1e47
commit
3dc2a17efc
|
|
@ -4995,9 +4995,7 @@ static int rtl8169_resume(struct device *device)
|
|||
clk_prepare_enable(tp->clk);
|
||||
|
||||
/* Some chip versions may truncate packets without this initialization */
|
||||
if (tp->mac_version == RTL_GIGA_MAC_VER_37 ||
|
||||
tp->mac_version == RTL_GIGA_MAC_VER_46)
|
||||
rtl_init_rxcfg(tp);
|
||||
rtl_init_rxcfg(tp);
|
||||
|
||||
return rtl8169_runtime_resume(device);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user