Thread (10 messages) 10 messages, 2 authors, 2012-08-16

[PATCH V3 1/5] clk: mmp: add mmp specific clocks

flat view

From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-08-16 07:18:17
Also in: lkml

On Thursday 16 August 2012, Chao Xie wrote:
quoted hunk ↗ jump to hunk
+static int clk_apbc_prepare(struct clk_hw *hw)
+{
+       struct clk_apbc *apbc = to_clk_apbc(hw);
+       unsigned int data;
+       unsigned long flags = 0;
+
+       /*
+        * It may share same register as MUX clock,
+        * and it will impact FNCLK enable. Spinlock is needed
+        */
+       if (apbc->lock)
+               spin_lock_irqsave(apbc->lock, flags);
+
+       data = __raw_readl(apbc->base);
+       if (apbc->flags & APBC_POWER_CTRL)
+               data |= APBC_POWER;
+       data |= APBC_FNCLK;
+       __raw_writel(data, apbc->base);
It seems you have missed a few __raw_readl/__raw_writel that still
want to get changed to readl_relaxed/writel_relaxed.

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