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

Commit fa2f207e authored by Maulik Shah's avatar Maulik Shah
Browse files

soc: qcom: rpm-smd: Move timeout for rpm ack error message



Currently timed out for rpm ack print can come when entering
and exiting sleep. print timeout error only while entering
rpm assited pc to avoid flooding when exiting sleep.

Change-Id: I2e6fbdb7e2da4dd9fe5184b116b337dbe2452340
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent d3068532
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -547,10 +547,8 @@ static int msm_rpm_read_sleep_ack(void)
		 * spinlock from being locked out.
		 */

		if (!timeout) {
			pr_err("Timed out waiting for RPM ACK\n");
		if (!timeout)
			return -EAGAIN;
		}

		ret = msm_rpm_read_smd_data(buf);
		if (!ret)
@@ -604,10 +602,12 @@ static int msm_rpm_flush_requests(bool print)

			if (ret >= 0)
				count--;
			else
			else {
				pr_err("Timed out waiting for RPM ACK\n");
				return ret;
			}
		}
	}
	return 0;
}