]> git.karo-electronics.de Git - karo-tx-linux.git/commit
r8169: fix auto speed down issue
authorHayes Wang <hayeswang@realtek.com>
Sat, 13 Apr 2013 10:26:32 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 04:27:27 +0000 (21:27 -0700)
commit880f56d9b7d77917de8bde461c69e4293cc04dd0
tree6e28aa3e5bf064105f5f5e75b4f1956f3936bd53
parent2931b31ff9987ddbaebc4101e159a9e298e792ef
r8169: fix auto speed down issue

commit e2409d83434d77874b461b78af6a19cd6e6a1280 upstream.

It would cause no link after suspending or shutdowning when the
nic changes the speed to 10M and connects to a link partner which
forces the speed to 100M.

Check the link partner ability to determine which speed to set.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c