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

Commit 9bbf4c38 authored by Arjun Singh's avatar Arjun Singh
Browse files

soc: qcom: bgrsb: Increase time out for RSB channel opening



Increases the required timeout for RSB channel opening as in BG ssr
event re-open may take more than existing time out.

Change-Id: Ibb20a55eef033fc51d567343798a0f5dbf00ca4e
Signed-off-by: default avatarArjun Singh <arsingh@codeaurora.org>
parent 845885a8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@

#define BGRSB_GLINK_INTENT_SIZE 0x04
#define BGRSB_MSG_SIZE 0x08
#define TIMEOUT_MS 500
#define TIMEOUT_MS 2000

#define BGRSB_LDO15_VTG_MIN_UV 3300000
#define BGRSB_LDO15_VTG_MAX_UV 3300000
@@ -544,7 +544,7 @@ static void bgrsb_bgup_work(struct work_struct *work)

		rc = wait_event_timeout(dev->link_state_wait,
				(dev->chnl_state == true),
					msecs_to_jiffies(TIMEOUT_MS*2));
					msecs_to_jiffies(TIMEOUT_MS));
		if (rc == 0) {
			pr_err("Glink channel connection time out\n");
			return;
@@ -574,7 +574,7 @@ static void bgrsb_glink_bgup_work(struct work_struct *work)

		rc = wait_event_timeout(dev->link_state_wait,
					(dev->chnl_state == true),
						msecs_to_jiffies(TIMEOUT_MS*2));
						msecs_to_jiffies(TIMEOUT_MS));
		if (rc == 0) {
			pr_err("Glink channel connection time out\n");
			return;