r8169: fix autoneg issue on resume with RTL8168E
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 20 Sep 2018 20:47:09 +0000 (22:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2018 02:58:47 +0000 (19:58 -0700)
commit10bc6a6042c900934a097988b5d50e3cf3f91781
tree2af303e79810fe5bc5461e75e025406f1a5852fe
parentd7ab5cdce54da631f0c8c11e506c974536a3581e
r8169: fix autoneg issue on resume with RTL8168E

It was reported that chip version 33 (RTL8168E) ends up with
10MBit/Half on a 1GBit link after resuming from S3 (with different
link partners). For whatever reason the PHY on this chip doesn't
properly start a renegotiation when soft-reset.
Explicitly requesting a renegotiation fixes this.

Fixes: a2965f12fde6 ("r8169: remove rtl8169_set_speed_xmii")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reported-by: Neil MacLeod <neil@nmacleod.com>
Tested-by: Neil MacLeod <neil@nmacleod.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c