Skip to content

Commit

Permalink
r8152: call rtl_start_rx after netif_carrier_on
Browse files Browse the repository at this point in the history
Remove rtl_start_rx() from rtl_enable() and put it after calling
netif_carrier_on().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
hayeswang authored and David S. Miller committed Jan 12, 2015
1 parent 3bf3947 commit aa2e092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/usb/r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ static int rtl_enable(struct r8152 *tp)

rxdy_gated_en(tp, false);

return rtl_start_rx(tp);
return 0;
}

static int rtl8152_enable(struct r8152 *tp)
Expand Down Expand Up @@ -2874,6 +2874,7 @@ static void set_carrier(struct r8152 *tp)
tp->rtl_ops.enable(tp);
set_bit(RTL8152_SET_RX_MODE, &tp->flags);
netif_carrier_on(netdev);
rtl_start_rx(tp);
}
} else {
if (tp->speed & LINK_STATUS) {
Expand Down

0 comments on commit aa2e092

Please sign in to comment.