Thread (31 messages) 31 messages, 7 authors, 2014-11-26

Re: [PATCH v9 2/9] qcom: spm: Add Subsystem Power Manager driver

From: Daniel Lezcano <hidden>
Date: 2014-11-17 21:32:18
Also in: linux-arm-kernel, linux-arm-msm, linux-pm

On 10/25/2014 01:40 AM, Lina Iyer wrote:

Hi Lina,

[ ... ]
+static inline void spm_register_write(struct spm_driver_data *drv,
+					enum spm_reg reg, u32 val)
+{
+	if (drv->reg_data->reg_offset[reg])
+		writel_relaxed(val, drv->reg_base +
+				drv->reg_data->reg_offset[reg]);
Why not use writel and don't use 'wmb' below ?
+}
+
[ ... ]
+	spm_register_write(drv, SPM_REG_SPM_CTL, ctl_val);
+
+	/* Ensure we have written the start address */
+	wmb();


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help