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

Commit 31c20887 authored by Anji Jonnala's avatar Anji Jonnala Committed by Stephen Boyd
Browse files

msm: rpm: remove the sanity check in rpm log



On 8960 it is observed that head and tail of rpm
circular buffer is not updated properly which is preventing
reading the RPM log through adb.

CRs-fixed: 365071
Change-Id: If24b7fb29fce14dccc24dbcdbe3513d22d94a298
Signed-off-by: default avatarAnji Jonnala <anjir@codeaurora.org>
parent 4daa0f88
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -115,13 +115,11 @@ static u32 msm_rpm_log_copy(const struct msm_rpm_log_platform_data *pdata,
			continue;
		}
		/*
		 * Ensure that the reported buffer size is within limits of
		 * known maximum size and that all indices are 4 byte aligned.
		 * These conditions are required to interact with a ULog buffer
		 * Ensure that all indices are 4 byte aligned.
		 * This conditions is required to interact with a ULog buffer
		 * properly.
		 */
		if (tail_idx - head_idx > pdata->log_len ||
		    !IS_ALIGNED((tail_idx | head_idx | *read_idx), 4))
		if (!IS_ALIGNED((tail_idx | head_idx | *read_idx), 4))
			break;

		msg_len = msm_rpm_log_read(pdata, MSM_RPM_LOG_PAGE_BUFFER,