r8169: fix auto speed down issue
authorhayeswang <hayeswang@realtek.com>
Sun, 31 Mar 2013 17:02:04 +0000 (17:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2013 21:46:02 +0000 (17:46 -0400)
commite2409d83434d77874b461b78af6a19cd6e6a1280
tree8bd7de1578400aa57c4450f0849649942d7ac43b
parent4f4ecd5f2a94135a8a556232aa9ddc55944d9c8f
r8169: fix auto speed down issue

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>
drivers/net/ethernet/realtek/r8169.c