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

Commit f928158a authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

qcom: rpm-smd: Increase wait timeout during sleep set



RPM driver waits for 5 us when the the tx buffer is full and eventually
times out after 250us. This isn't sufficient time for RPM to consume the
data. This could result in a unsuccessful attempts to send sleep set
buffers.

Increase the timeout to 100us to give RPM sufficient time to read through
the data.

CRs-fixed: 980952
Change-Id: I4536c2503bbcba3aad3401ca5bace8d1884e3f50
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent 8007444c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1130,7 +1130,7 @@ static int msm_rpm_glink_send_buffer(char *buf, uint32_t size, bool noirq)
{
	int ret;
	unsigned long flags;
	int timeout = 50;
	int timeout = 5;

	spin_lock_irqsave(&msm_rpm_data.smd_lock_write, flags);
	do {
@@ -1144,7 +1144,7 @@ static int msm_rpm_glink_send_buffer(char *buf, uint32_t size, bool noirq)
				spin_lock_irqsave(
					&msm_rpm_data.smd_lock_write, flags);
			} else {
				udelay(5);
				udelay(100);
			}
			timeout--;
		} else {