Thread (30 messages) 30 messages, 5 authors, 2018-04-06

Re: [PATCH v3 08/10] clk: qcom: Add ACD path to CPU clock driver for msm8996

From: Robin Murphy <robin.murphy@arm.com>
Date: 2018-03-19 18:16:15
Also in: linux-arm-kernel, linux-arm-msm, linux-clk

On 19/03/18 16:57, Stephen Boyd wrote:
[...]
quoted
+
+       if (PWRCL_CPU_REG_MASK == (hwid | PWRCL_CPU_REG_MASK)) {
+               /* Enable Soft Stop/Start */
Sigh.
quoted
+               if (vbases[APC_BASE])
When is this false?
quoted
+                       writel_relaxed(SSSCTL_VAL, vbases[APC_BASE] +
+                                       PWRCL_REG_OFFSET + SSSCTL_OFFSET);
+               /* Ensure SSSCTL config goes through before enabling ACD. */
+               mb();
Use writel instead.
Note that writel() only gives an implicit wmb() *before* the store to 
ensure ordering against any previous writes. If this code really needs 
to ensure that the given write has definitely completed before any other 
accesses happen, then it still needs an explicit barrier *after* the 
write*(), unless perhaps the next access is always guaranteed to be a 
non-relaxed write (thus implicitly providing a suitable DSB).

Robin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help