r8152: combine PHY reset with set_speed
authorhayeswang <hayeswang@realtek.com>
Tue, 18 Feb 2014 13:49:04 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 21:40:01 +0000 (16:40 -0500)
commitaa66a5f1af163b6c90fca5a06c7fdab121b70cd2
treeb4f4481d7b3c1120d0ee3c69b2aad2aa4801853c
parentf0cbe0ac87c123a80dac3b2df72ecb947ef63ad8
r8152: combine PHY reset with set_speed

PHY reset is necessary after some hw settings. However, it would
cause the linking down, and so does the set_speed function. Combine
the PHY reset with set_speed function. That could reduce the frequency
of linking down and accessing the PHY register.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c