Thread (26 messages) 26 messages, 6 authors, 2017-08-16

Re: [RFC v2 5/6] max9260: add driver for i2c over GMSL passthrough

From: Ulrich Hecht <hidden>
Date: 2017-08-16 13:23:52
Also in: linux-i2c, linux-renesas-soc

On Wed, Jul 19, 2017 at 5:00 PM, Wolfram Sang [off-list ref] wrote:
quoted
+{
+     wait_event_interruptible_timeout(dev->rx_wq,
+             dev->rx_state <= RX_FRAME_ERROR,
+             HZ/2);
I'd suggest to drop the interruptible. It can be done but it is usually
not trivial to abort the operation gracefully when a signal comes in.

Also, timeout is superfluous since you don't get the return value?
Be that as it may, I still want a timeout; wouldn't wait_event() block forever?

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