linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: ux500: Fix prcmu clocks registration
@ 2013-03-26 14:27 Maxime Coquelin
  2013-03-26 20:05 ` Mike Turquette
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Coquelin @ 2013-03-26 14:27 UTC (permalink / raw)
  To: mike.turquette, linux-kernel; +Cc: Maxime Coquelin

From: Maxime Coquelin <maxime.coquelin@st.com>

In clk_reg_prcmu(), clk->hw.init field is assigned with a
reference local to clk_reg_prcmu() function.

This patch replaces references to clk->hw.init with calls
to __clk_get_name when called after clock registration.

This patch applies on top of v3.9-rc4.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/clk/ux500/clk-prcmu.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/clk/ux500/clk-prcmu.c b/drivers/clk/ux500/clk-prcmu.c
index 74faa7e..63ba261 100644
--- a/drivers/clk/ux500/clk-prcmu.c
+++ b/drivers/clk/ux500/clk-prcmu.c
@@ -36,7 +36,7 @@ static void clk_prcmu_unprepare(struct clk_hw *hw)
 	struct clk_prcmu *clk = to_clk_prcmu(hw);
 	if (prcmu_request_clock(clk->cg_sel, false))
 		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
-			hw->init->name);
+			__clk_get_name(hw->clk));
 }
 
 static int clk_prcmu_enable(struct clk_hw *hw)
@@ -107,7 +107,7 @@ static int clk_prcmu_opp_prepare(struct clk_hw *hw)
 	err = request_ape_opp100(true);
 	if (err) {
 		pr_err("clk_prcmu: %s failed to request APE OPP100 for %s.\n",
-			__func__, hw->init->name);
+			__func__, __clk_get_name(hw->clk));
 		return err;
 	}
 
@@ -130,7 +130,7 @@ static void clk_prcmu_opp_unprepare(struct clk_hw *hw)
 
 out_error:
 	pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
-		hw->init->name);
+		__clk_get_name(hw->clk));
 }
 
 static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw)
@@ -141,7 +141,7 @@ static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw)
 	err = prcmu_request_ape_opp_100_voltage(true);
 	if (err) {
 		pr_err("clk_prcmu: %s failed to request APE OPP VOLT for %s.\n",
-			__func__, hw->init->name);
+			__func__, __clk_get_name(hw->clk));
 		return err;
 	}
 
@@ -164,7 +164,7 @@ static void clk_prcmu_opp_volt_unprepare(struct clk_hw *hw)
 
 out_error:
 	pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
-		hw->init->name);
+		__clk_get_name(hw->clk));
 }
 
 static struct clk_ops clk_prcmu_scalable_ops = {
-- 
1.7.8


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: ux500: Fix prcmu clocks registration
  2013-03-26 14:27 [PATCH] clk: ux500: Fix prcmu clocks registration Maxime Coquelin
@ 2013-03-26 20:05 ` Mike Turquette
  2013-03-27  9:55   ` Maxime COQUELIN
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Turquette @ 2013-03-26 20:05 UTC (permalink / raw)
  To: Maxime Coquelin, linux-kernel; +Cc: Maxime Coquelin

Quoting Maxime Coquelin (2013-03-26 07:27:15)
> From: Maxime Coquelin <maxime.coquelin@st.com>
> 
> In clk_reg_prcmu(), clk->hw.init field is assigned with a
> reference local to clk_reg_prcmu() function.
> 
> This patch replaces references to clk->hw.init with calls
> to __clk_get_name when called after clock registration.
> 
> This patch applies on top of v3.9-rc4.
> 
> Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

Hi Maxime,

This patch did not apply cleanly onto clk-next.  Below is what I merged.
Please let me know if there are any issues.

Regards,
Mike



>From 5717b1a93c7d86cfea501a35bb8c83910c20159f Mon Sep 17 00:00:00 2001
From: Maxime Coquelin <maxime.coquelin@st.com>
Date: Tue, 26 Mar 2013 15:27:15 +0100
Subject: [PATCH] clk: ux500: Fix prcmu clocks registration

In clk_reg_prcmu(), clk->hw.init field is assigned with a
reference local to clk_reg_prcmu() function.

This patch replaces references to clk->hw.init with calls
to __clk_get_name when called after clock registration.

This patch applies on top of v3.9-rc4.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: resolved trivial merge issues]
---
 drivers/clk/ux500/clk-prcmu.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/clk/ux500/clk-prcmu.c b/drivers/clk/ux500/clk-prcmu.c
index 9d83256..293a288 100644
--- a/drivers/clk/ux500/clk-prcmu.c
+++ b/drivers/clk/ux500/clk-prcmu.c
@@ -44,7 +44,7 @@ static void clk_prcmu_unprepare(struct clk_hw *hw)
 	struct clk_prcmu *clk = to_clk_prcmu(hw);
 	if (prcmu_request_clock(clk->cg_sel, false))
 		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
-			hw->init->name);
+			__clk_get_name(hw->clk));
 	else
 		clk->is_prepared = 0;
 }
@@ -106,7 +106,7 @@ static int clk_prcmu_opp_prepare(struct clk_hw *hw)
 						100);
 		if (err) {
 			pr_err("clk_prcmu: %s fail req APE OPP for %s.\n",
-				__func__, hw->init->name);
+				__func__, __clk_get_name(hw->clk));
 			return err;
 		}
 		clk->opp_requested = 1;
@@ -130,7 +130,7 @@ static void clk_prcmu_opp_unprepare(struct clk_hw *hw)
 
 	if (prcmu_request_clock(clk->cg_sel, false)) {
 		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
-			hw->init->name);
+			__clk_get_name(hw->clk));
 		return;
 	}
 
@@ -152,7 +152,7 @@ static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw)
 		err = prcmu_request_ape_opp_100_voltage(true);
 		if (err) {
 			pr_err("clk_prcmu: %s fail req APE OPP VOLT for %s.\n",
-				__func__, hw->init->name);
+				__func__, __clk_get_name(hw->clk));
 			return err;
 		}
 		clk->opp_requested = 1;
@@ -175,7 +175,7 @@ static void clk_prcmu_opp_volt_unprepare(struct clk_hw *hw)
 
 	if (prcmu_request_clock(clk->cg_sel, false)) {
 		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
-			hw->init->name);
+			__clk_get_name(hw->clk));
 		return;
 	}
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: ux500: Fix prcmu clocks registration
  2013-03-26 20:05 ` Mike Turquette
@ 2013-03-27  9:55   ` Maxime COQUELIN
  0 siblings, 0 replies; 3+ messages in thread
From: Maxime COQUELIN @ 2013-03-27  9:55 UTC (permalink / raw)
  To: Mike Turquette; +Cc: Maxime Coquelin, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 3514 bytes --]

Le 03/26/2013 09:05 PM, Mike Turquette a écrit :
> Quoting Maxime Coquelin (2013-03-26 07:27:15)
>> From: Maxime Coquelin <maxime.coquelin@st.com>
>>
>> In clk_reg_prcmu(), clk->hw.init field is assigned with a
>> reference local to clk_reg_prcmu() function.
>>
>> This patch replaces references to clk->hw.init with calls
>> to __clk_get_name when called after clock registration.
>>
>> This patch applies on top of v3.9-rc4.
>>
>> Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
>> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
> Hi Maxime,
>
> This patch did not apply cleanly onto clk-next.  Below is what I merged.
> Please let me know if there are any issues.
Hi Mike,

I just fetched your clk-next branch.
It looks good to me.

Thanks for the merge,
Maxime
>
> Regards,
> Mike
>
>
>
>  From 5717b1a93c7d86cfea501a35bb8c83910c20159f Mon Sep 17 00:00:00 2001
> From: Maxime Coquelin <maxime.coquelin@st.com>
> Date: Tue, 26 Mar 2013 15:27:15 +0100
> Subject: [PATCH] clk: ux500: Fix prcmu clocks registration
>
> In clk_reg_prcmu(), clk->hw.init field is assigned with a
> reference local to clk_reg_prcmu() function.
>
> This patch replaces references to clk->hw.init with calls
> to __clk_get_name when called after clock registration.
>
> This patch applies on top of v3.9-rc4.
>
> Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
> Signed-off-by: Mike Turquette <mturquette@linaro.org>
> [mturquette@linaro.org: resolved trivial merge issues]
> ---
>   drivers/clk/ux500/clk-prcmu.c |   10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/clk/ux500/clk-prcmu.c b/drivers/clk/ux500/clk-prcmu.c
> index 9d83256..293a288 100644
> --- a/drivers/clk/ux500/clk-prcmu.c
> +++ b/drivers/clk/ux500/clk-prcmu.c
> @@ -44,7 +44,7 @@ static void clk_prcmu_unprepare(struct clk_hw *hw)
>   	struct clk_prcmu *clk = to_clk_prcmu(hw);
>   	if (prcmu_request_clock(clk->cg_sel, false))
>   		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
> -			hw->init->name);
> +			__clk_get_name(hw->clk));
>   	else
>   		clk->is_prepared = 0;
>   }
> @@ -106,7 +106,7 @@ static int clk_prcmu_opp_prepare(struct clk_hw *hw)
>   						100);
>   		if (err) {
>   			pr_err("clk_prcmu: %s fail req APE OPP for %s.\n",
> -				__func__, hw->init->name);
> +				__func__, __clk_get_name(hw->clk));
>   			return err;
>   		}
>   		clk->opp_requested = 1;
> @@ -130,7 +130,7 @@ static void clk_prcmu_opp_unprepare(struct clk_hw *hw)
>   
>   	if (prcmu_request_clock(clk->cg_sel, false)) {
>   		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
> -			hw->init->name);
> +			__clk_get_name(hw->clk));
>   		return;
>   	}
>   
> @@ -152,7 +152,7 @@ static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw)
>   		err = prcmu_request_ape_opp_100_voltage(true);
>   		if (err) {
>   			pr_err("clk_prcmu: %s fail req APE OPP VOLT for %s.\n",
> -				__func__, hw->init->name);
> +				__func__, __clk_get_name(hw->clk));
>   			return err;
>   		}
>   		clk->opp_requested = 1;
> @@ -175,7 +175,7 @@ static void clk_prcmu_opp_volt_unprepare(struct clk_hw *hw)
>   
>   	if (prcmu_request_clock(clk->cg_sel, false)) {
>   		pr_err("clk_prcmu: %s failed to disable %s.\n", __func__,
> -			hw->init->name);
> +			__clk_get_name(hw->clk));
>   		return;
>   	}
>   
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-27  9:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 14:27 [PATCH] clk: ux500: Fix prcmu clocks registration Maxime Coquelin
2013-03-26 20:05 ` Mike Turquette
2013-03-27  9:55   ` Maxime COQUELIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).