[PATCH] net: usb: r8152: fix transmit queue timeout

From: insyelu

Date: Tue Jan 13 2026 - 21:57:35 EST


When the TX queue length reaches the threshold, the netdev watchdog
immediately detects a TX queue timeout.

This patch updates the transmit queue's trans_start timestamp upon
completion of each asynchronous USB URB submission on the TX path,
ensuring the network watchdog correctly reflects ongoing transmission
activity.

Signed-off-by: insyelu <insyelu@xxxxxxxxx>
---
drivers/net/usb/r8152.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index fa5192583860..afec602a5fdb 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -1954,6 +1954,8 @@ static void write_bulk_callback(struct urb *urb)

if (!skb_queue_empty(&tp->tx_queue))
tasklet_schedule(&tp->tx_tl);
+
+ netif_trans_update(netdev);
}

static void intr_callback(struct urb *urb)
--
2.34.1