]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf22e6b47101b0a9b54d9722ca3c769a6779c9019
treeb4f4481d7b3c1120d0ee3c69b2aad2aa4801853c
parentca534b4a14bceb98c1239e9c6c1504c5a73de153
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