Re: [RFC PATCH v2 3/3] gnss: Add driver for AI2 protocol

From
Andreas Kemnade <andreas@kemnade.info>
Date
2024-02-25 22:17:00
Also in
lkml
Reply to
Paul Menzel, 2024-01-29
Hi Paul,

I have left out one thing to answer.

On Mon, 29 Jan 2024 08:53:27 +0100
Paul Menzel [off-list ref] wrote:
quoted
+	ret = ai2_send_frame(ai2dev, skb);
+	if (ret)
+		return ret;
+
+	msleep(200);  
I’d be great if you added a comment, why this long delay is needed.
Well, I am just a bit paranoid, s/msleep/wait_for_completion_timeout/ and
complete() on some ack would probably improve this. I just hesitated to add
something like this until I have the feeling that I do not need to turn the
driver upside-down.

Regards,
Andreas
Thread (13 messages) 13 messages, 4 authors, last reply 2024-02-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help