Skip to content

Commit

Permalink
usb: Increase ctrl pipe timeout
Browse files Browse the repository at this point in the history
Experimental testing shows that with the current timeout if the remote
system is under high load the timeout is triggered occasionally.

To mitigate this issue increase the timeout.

Signed-off-by: Lars-Peter Clausen <[email protected]>
  • Loading branch information
larsclausen authored and commodo committed Oct 30, 2018
1 parent ad085a5 commit 879abfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static unsigned int usb_calculate_remote_timeout(unsigned int timeout)
return timeout / 2;
}

#define USB_PIPE_CTRL_TIMEOUT 200 /* These should not take long */
#define USB_PIPE_CTRL_TIMEOUT 1000 /* These should not take long */

#define IIO_USD_CMD_RESET_PIPES 0
#define IIO_USD_CMD_OPEN_PIPE 1
Expand Down

0 comments on commit 879abfe

Please sign in to comment.