ARM: S5P: Add EPLL rate change warning
authorSeungwhan Youn <sw.youn@samsung.com>
Thu, 14 Oct 2010 01:39:33 +0000 (10:39 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 25 Oct 2010 07:06:13 +0000 (16:06 +0900)
This patch adds warning about changing EPLL rate to notice that other
driver that controls H/W, which is using EPLL, will has unknown effects
by this EPLL rate change.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5p64x0/clock-s5p6440.c
arch/arm/mach-s5p64x0/clock-s5p6450.c
arch/arm/mach-s5pc100/clock.c
arch/arm/mach-s5pv210/clock.c

index cfccdff744d21ced27aaee5b4306b72bff3b51af..0d728d3383b4b3a2fcecf820c81b9fbc5c8fa61d 100644 (file)
@@ -79,6 +79,9 @@ static int s5p6440_epll_set_rate(struct clk *clk, unsigned long rate)
        __raw_writel(epll_con, S5P64X0_EPLL_CON);
        __raw_writel(epll_con_k, S5P64X0_EPLL_CON_K);
 
+       printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
+                       clk->rate, rate);
+
        clk->rate = rate;
 
        return 0;
index f1498d35111b2cbbaf8b3ecaed657368a633695f..1b9b0f92d178f1b0df06cf28c95cca6bce1d3c46 100644 (file)
@@ -80,6 +80,9 @@ static int s5p6450_epll_set_rate(struct clk *clk, unsigned long rate)
        __raw_writel(epll_con, S5P64X0_EPLL_CON);
        __raw_writel(epll_con_k, S5P64X0_EPLL_CON_K);
 
+       printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
+                       clk->rate, rate);
+
        clk->rate = rate;
 
        return 0;
index 42c2636ca3ac5e6308d10dff6ff27aa4601c8f72..9e192a0ad4f930d6de889d926fa21600782ad129 100644 (file)
@@ -323,6 +323,9 @@ static int s5pc100_epll_set_rate(struct clk *clk, unsigned long rate)
 
        __raw_writel(epll_con, S5P_EPLL_CON);
 
+       printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
+                       clk->rate, rate);
+
        clk->rate = rate;
 
        return 0;
index 156aa8af9072bcacc434f4795cdd0d4c58735b7d..38ad7e55ab1298be6d68e1da43982ff1828fe878 100644 (file)
@@ -1109,6 +1109,9 @@ static int s5pv210_epll_set_rate(struct clk *clk, unsigned long rate)
        __raw_writel(epll_con, S5P_EPLL_CON);
        __raw_writel(epll_con_k, S5P_EPLL_CON1);
 
+       printk(KERN_WARNING "EPLL Rate changes from %lu to %lu\n",
+                       clk->rate, rate);
+
        clk->rate = rate;
 
        return 0;