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)
commitf4c7476b041d200c3b347f019eebf05e6d0b47f9
tree15725bc40b85bfacf6f2f7aca23e06bcc3383d21
parent923e1ee3ff0b585cc4f56cf696c8455708537ffb
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