]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: reset tp->speed before autoresuming in open function
authorhayeswang <hayeswang@realtek.com>
Wed, 29 Oct 2014 03:12:16 +0000 (11:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 19:49:00 +0000 (15:49 -0400)
commit164bb1bbc8a754e36818b5b73b0d348cfe26a299
tree15725bc40b85bfacf6f2f7aca23e06bcc3383d21
parent4c98f0430f4401f4335c102cca97be15add19397
r8152: reset tp->speed before autoresuming in open function

If (tp->speed & LINK_STATUS) is not zero, the rtl8152_resume()
would call rtl_start_rx() before enabling the tx/rx. Avoid this
by resetting it to zero.

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