Commit c1a7106b authored by hayeswang's avatar hayeswang Committed by Greg Kroah-Hartman

r8152: fix rtl8152_post_reset function


[ Upstream commit 2c561b2b ]

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: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9507910c
...@@ -3548,12 +3548,14 @@ static int rtl8152_post_reset(struct usb_interface *intf) ...@@ -3548,12 +3548,14 @@ static int rtl8152_post_reset(struct usb_interface *intf)
if (netif_carrier_ok(netdev)) { if (netif_carrier_ok(netdev)) {
mutex_lock(&tp->control); mutex_lock(&tp->control);
tp->rtl_ops.enable(tp); tp->rtl_ops.enable(tp);
rtl_start_rx(tp);
rtl8152_set_rx_mode(netdev); rtl8152_set_rx_mode(netdev);
mutex_unlock(&tp->control); mutex_unlock(&tp->control);
netif_wake_queue(netdev); netif_wake_queue(netdev);
} }
napi_enable(&tp->napi); napi_enable(&tp->napi);
usb_submit_urb(tp->intr_urb, GFP_KERNEL);
if (!list_empty(&tp->rx_done)) if (!list_empty(&tp->rx_done))
napi_schedule(&tp->napi); napi_schedule(&tp->napi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment