Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 288fd4eb authored by Steven Cahail's avatar Steven Cahail Committed by Matt Wagantall
Browse files

soc: qcom: glink_pkt: Increase default open timeout to 120s



Clients using the default timeout of 1 second may timeout and retry an
open operation during a critical segment of a remote subsystem boot
which can trigger a race condition and result in a system crash.

As a workaround, increase the default timeout to 120 seconds which
ensures timeouts miss the race window.

Change-Id: I7983218e3ba1bdb8c50b685e7b215b05f1142331
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent d8a22db3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -819,10 +819,10 @@ int glink_pkt_open(struct inode *inode, struct file *file)
		/*
		 * Wait for the channel to be complete open state so we know
		 * the remote is ready enough.
		 * Defualt timeout 1sec.
		 * Default timeout 120 seconds.
		 */
		if (!devp->open_time_wait)
			devp->open_time_wait = 1;
			devp->open_time_wait = 120;
		if (devp->open_time_wait < 0) {
			ret = wait_event_interruptible(
				devp->ch_opened_wait_queue,