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

Commit 35c55674 authored by Lina Iyer's avatar Lina Iyer Committed by Gerrit - the friendly Code Review server
Browse files

drivers: qcom: sys_pm_vx: add barrier after read



System PM Violators reads should not be jumbled. Add a barrier to ensure
reads are sequential.

Change-Id: I68112e3ddff4c65a3b9e8cc1dc3a79ed392dc375
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent e445c189
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@
		v = le32_to_cpu(readl_relaxed(base + itr));	\
		pr_debug("Addr:%p val:%#x\n", base + itr, v);	\
		itr += sizeof(u32);				\
		/* Barrier to enssure sequential read */	\
		smp_rmb();					\
		v;						\
		})