summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorhayeswang <hayeswang@realtek.com>2017-01-20 14:33:55 +0800
committerDavid S. Miller <davem@davemloft.net>2017-01-20 11:06:23 -0500
commit2c561b2b728ca4013e76d6439bde2c137503745e (patch)
tree8fd88e41f8f82f895216e257d503fe48130c8533 /drivers/net/usb
parent6391a4481ba0796805d6581e42f9f0418c099e34 (diff)
downloadlinux-2c561b2b728ca4013e76d6439bde2c137503745e.tar.gz
linux-2c561b2b728ca4013e76d6439bde2c137503745e.tar.bz2
linux-2c561b2b728ca4013e76d6439bde2c137503745e.zip
r8152: fix rtl8152_post_reset function
The rtl8152_post_reset() should sumbit rx urb and interrupt transfer, otherwise the rx wouldn't work and the linking change couldn't be detected. Signed-off-by: Hayes Wang <hayeswang@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/r8152.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index f3b48ad90865..0e99af090734 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -3545,12 +3545,14 @@ static int rtl8152_post_reset(struct usb_interface *intf)
if (netif_carrier_ok(netdev)) {
mutex_lock(&tp->control);
tp->rtl_ops.enable(tp);
+ rtl_start_rx(tp);
rtl8152_set_rx_mode(netdev);
mutex_unlock(&tp->control);
netif_wake_queue(netdev);
}
napi_enable(&tp->napi);
+ usb_submit_urb(tp->intr_urb, GFP_KERNEL);
return 0;
}