r8169: fix network error on resume from suspend
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 19 May 2018 08:29:33 +0000 (10:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 May 2018 22:38:47 +0000 (18:38 -0400)
commit52f8560ee4684f8689085817225786dba3399f6f
tree8a728e4b1bd7f72701c5e235845f26dcc9196fd9
parentd48f1958ab7d9fb896d86f0241f0dc83dc3a63de
r8169: fix network error on resume from suspend

This commit removed calls to rtl_set_rx_mode(). This is ok for the
standard path if the link is brought up, however it breaks system
resume from suspend. Link comes up but no network traffic.

Meanwhile common code from rtl_hw_start_8169/8101/8168() was moved
to rtl_hw_start(), therefore re-add the call to rtl_set_rx_mode()
there.

Due to adding this call we have to move definition of rtl_hw_start()
after definition of rtl_set_rx_mode().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Fixes: 82d3ff6dd199 ("r8169: remove calls to rtl_set_rx_mode")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c