Thread (2 messages) 2 messages, 2 authors, 2026-09-07

Re: [PATCH net] net: dsa: realtek: rtl8365mb: wait out the full chip reset time

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-09-07 20:39:48
Also in: lkml

quoted hunk ↗ jump to hunk
 static int rtl8365mb_reset_chip(struct realtek_priv *priv)
 {
+	unsigned long remaining;
quoted hunk ↗ jump to hunk
+	remaining = deadline - jiffies;
+	if ((long)remaining > 0)
+		msleep(jiffies_to_msecs(remaining));
Since remaining could be negative, it seems like long would be better
than unsigned long.

     Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help