diff --git a/r8152.c b/r8152.c index aa0ca81..5611c68 100644 --- a/r8152.c +++ b/r8152.c @@ -2437,6 +2437,8 @@ static void write_bulk_callback(struct urb *urb) if (test_bit(RTL8152_UNPLUG, &tp->flags)) return; + netif_trans_update(netdev); + if (!skb_queue_empty_lockless(&tp->tx_queue)) tasklet_schedule(&tp->tx_tl); } @@ -2499,6 +2501,8 @@ static void write_bulk_sg_callback(struct urb *urb) if (test_bit(RTL8152_UNPLUG, &tp->flags)) return; + netif_trans_update(netdev); + if (!skb_queue_empty_lockless(&tp->tx_queue)) tasklet_schedule(&tp->tx_tl); }