Skip to content

Commit 5270bf6

Browse files
hayesorzgregkh
authored andcommitted
r8152: fix rtl8152_post_reset function
[ Upstream commit 2c561b2b728ca4013e76d6439bde2c137503745e ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a4877e5 commit 5270bf6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/usb/r8152.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,12 +3418,14 @@ static int rtl8152_post_reset(struct usb_interface *intf)
34183418
if (netif_carrier_ok(netdev)) {
34193419
mutex_lock(&tp->control);
34203420
tp->rtl_ops.enable(tp);
3421+
rtl_start_rx(tp);
34213422
rtl8152_set_rx_mode(netdev);
34223423
mutex_unlock(&tp->control);
34233424
netif_wake_queue(netdev);
34243425
}
34253426

34263427
napi_enable(&tp->napi);
3428+
usb_submit_urb(tp->intr_urb, GFP_KERNEL);
34273429

34283430
return 0;
34293431
}

0 commit comments

Comments
 (0)