r8169: fix auto speed down issue
authorHayes Wang <hayeswang@realtek.com>
Sat, 13 Apr 2013 10:26:55 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 04:02:31 +0000 (21:02 -0700)
commitf0776cdd7c35a4b4ca7b80e6afc4ecd0d26831d7
tree2862d1d0a68867faf86c13a9a78a66623e207f63
parentfcea984b4ded553023858d55afcf5e782462af1c
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.

The link speed down code path is not factored in this kernel version.

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/r8169.c