r8169: fix auto speed down issue
authorhayeswang <hayeswang@realtek.com>
Sun, 31 Mar 2013 17:02:04 +0000 (17:02 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 25 Apr 2013 19:25:48 +0000 (20:25 +0100)
commit8b060e4133e4c72dcff12e7e4a0ada07354ef953
treef8b9f3f92b21ac808ca15945e21204fba7384b42
parent4316936730689af432346fa1d71c3f69f22ec3ac
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: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/realtek/r8169.c