]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: set RX_MULTI_EN bit in RxConfig for 8168F-family chips
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Thu, 11 Oct 2018 14:02:10 +0000 (16:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 19:08:04 +0000 (12:08 -0700)
commit6170b4a83fc3018bd2de862f8ef39d5c827f4df5
treebc23d803d7d71a1eebfe1eb370af75eeb3a64f87
parent07f0cb2c0b997c5b9ce05533e98c97388698757a
r8169: set RX_MULTI_EN bit in RxConfig for 8168F-family chips

It has been reported that since
commit 47fe4e0fc33109 ("r8169: set RxConfig after tx/rx is enabled for RTL8169sb/8110sb devices")
at least RTL_GIGA_MAC_VER_38 NICs work erratically after a resume from
suspend.
The problem has been traced to a missing RX_MULTI_EN bit in the RxConfig
register.
We already set this bit for RTL_GIGA_MAC_VER_35 NICs of the same 8168F
chip family so let's do it also for its other siblings: RTL_GIGA_MAC_VER_36
and RTL_GIGA_MAC_VER_38.

Curiously, the NIC seems to work fine after a system boot without having
this bit set as long as the system isn't suspended and resumed.

Fixes: 47fe4e0fc33109 ("r8169: set RxConfig after tx/rx is enabled for RTL8169sb/8110sb devices")
Reported-by: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c