public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] rtc: s3c: add missing clk control
@ 2015-08-11 11:28 Joonyoung Shim
  2015-08-11 11:28 ` [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment Joonyoung Shim
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Joonyoung Shim @ 2015-08-11 11:28 UTC (permalink / raw)
  To: rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi, k.kozlowski, jy0922.shim

It's missed to call clk_unprepare() about info->rtc_src_clk in
s3c_rtc_remove and to call clk_disable_unprepare about info->rtc_clk in
error routine of s3c_rtc_probe.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/rtc/rtc-s3c.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index a0f8323..d1866a4 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -410,6 +410,8 @@ static int s3c_rtc_remove(struct platform_device *pdev)
 
 	s3c_rtc_setaie(info->dev, 0);
 
+	if (info->data->needs_src_clk)
+		clk_unprepare(info->rtc_src_clk);
 	clk_unprepare(info->rtc_clk);
 	info->rtc_clk = NULL;
 
@@ -482,6 +484,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
 		if (IS_ERR(info->rtc_src_clk)) {
 			dev_err(&pdev->dev,
 				"failed to find rtc source clock\n");
+			clk_disable_unprepare(info->rtc_clk);
 			return PTR_ERR(info->rtc_src_clk);
 		}
 		clk_prepare_enable(info->rtc_src_clk);
-- 
1.9.1


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

* [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment
  2015-08-11 11:28 [PATCH 1/4] rtc: s3c: add missing clk control Joonyoung Shim
@ 2015-08-11 11:28 ` Joonyoung Shim
  2015-08-12  0:07   ` Krzysztof Kozlowski
  2015-08-20 23:07   ` Alexandre Belloni
  2015-08-11 11:28 ` [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk Joonyoung Shim
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 12+ messages in thread
From: Joonyoung Shim @ 2015-08-11 11:28 UTC (permalink / raw)
  To: rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi, k.kozlowski, jy0922.shim

It's unnecessary the code that assigns info->rtc_clk to NULL in
s3c_rtc_remove.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/rtc/rtc-s3c.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index d1866a4..44b2921 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -413,7 +413,6 @@ static int s3c_rtc_remove(struct platform_device *pdev)
 	if (info->data->needs_src_clk)
 		clk_unprepare(info->rtc_src_clk);
 	clk_unprepare(info->rtc_clk);
-	info->rtc_clk = NULL;
 
 	return 0;
 }
-- 
1.9.1


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

* [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk
  2015-08-11 11:28 [PATCH 1/4] rtc: s3c: add missing clk control Joonyoung Shim
  2015-08-11 11:28 ` [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment Joonyoung Shim
@ 2015-08-11 11:28 ` Joonyoung Shim
  2015-08-12  0:10   ` Krzysztof Kozlowski
  2015-08-11 11:28 ` [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm Joonyoung Shim
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 12+ messages in thread
From: Joonyoung Shim @ 2015-08-11 11:28 UTC (permalink / raw)
  To: rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi, k.kozlowski, jy0922.shim

The driver uses clk_prepare_enable()/clk_disable_unprepare() only in
probe only, elsewhere, use the unified functions for enable/disable of
clk, e.g. s3c_rtc_enable_clk() / s3c_rtc_disable_clk(), so it's better
to use them for consistency of code.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/rtc/rtc-s3c.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index 44b2921..abe2a6d 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -476,19 +476,21 @@ static int s3c_rtc_probe(struct platform_device *pdev)
 		dev_err(&pdev->dev, "failed to find rtc clock\n");
 		return PTR_ERR(info->rtc_clk);
 	}
-	clk_prepare_enable(info->rtc_clk);
+	clk_prepare(info->rtc_clk);
 
 	if (info->data->needs_src_clk) {
 		info->rtc_src_clk = devm_clk_get(&pdev->dev, "rtc_src");
 		if (IS_ERR(info->rtc_src_clk)) {
 			dev_err(&pdev->dev,
 				"failed to find rtc source clock\n");
-			clk_disable_unprepare(info->rtc_clk);
+			clk_unprepare(info->rtc_clk);
 			return PTR_ERR(info->rtc_src_clk);
 		}
-		clk_prepare_enable(info->rtc_src_clk);
+		clk_prepare(info->rtc_src_clk);
 	}
 
+	s3c_rtc_enable_clk(info);
+
 	/* check to see if everything is setup correctly */
 	if (info->data->enable)
 		info->data->enable(info);
@@ -548,9 +550,11 @@ static int s3c_rtc_probe(struct platform_device *pdev)
 	if (info->data->disable)
 		info->data->disable(info);
 
+	s3c_rtc_disable_clk(info);
+
 	if (info->data->needs_src_clk)
-		clk_disable_unprepare(info->rtc_src_clk);
-	clk_disable_unprepare(info->rtc_clk);
+		clk_unprepare(info->rtc_src_clk);
+	clk_unprepare(info->rtc_clk);
 
 	return ret;
 }
-- 
1.9.1


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

* [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm
  2015-08-11 11:28 [PATCH 1/4] rtc: s3c: add missing clk control Joonyoung Shim
  2015-08-11 11:28 ` [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment Joonyoung Shim
  2015-08-11 11:28 ` [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk Joonyoung Shim
@ 2015-08-11 11:28 ` Joonyoung Shim
  2015-08-12  0:28   ` Krzysztof Kozlowski
  2015-08-12  0:06 ` [PATCH 1/4] rtc: s3c: add missing clk control Krzysztof Kozlowski
  2015-08-20 23:06 ` Alexandre Belloni
  4 siblings, 1 reply; 12+ messages in thread
From: Joonyoung Shim @ 2015-08-11 11:28 UTC (permalink / raw)
  To: rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi, k.kozlowski, jy0922.shim

The clock enable/disable codes for alarm have removed from
'commit 24e1455493da ("drivers/rtc/rtc-s3c.c: delete duplicate clock
control")' and the clocks keep disabling even if alarm is set, so alarm
interrupt can't happen.

The s3c_rtc_setaie function can be called several times with that
enabled argument has same value, so it needs to check whether clocks is
enabled or not.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/rtc/rtc-s3c.c | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index abe2a6d..fce078c 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -39,6 +39,7 @@ struct s3c_rtc {
 	void __iomem *base;
 	struct clk *rtc_clk;
 	struct clk *rtc_src_clk;
+	bool clk_enabled;
 
 	struct s3c_rtc_data *data;
 
@@ -71,9 +72,12 @@ static void s3c_rtc_enable_clk(struct s3c_rtc *info)
 	unsigned long irq_flags;
 
 	spin_lock_irqsave(&info->alarm_clk_lock, irq_flags);
-	clk_enable(info->rtc_clk);
-	if (info->data->needs_src_clk)
-		clk_enable(info->rtc_src_clk);
+	if (!info->clk_enabled) {
+		clk_enable(info->rtc_clk);
+		if (info->data->needs_src_clk)
+			clk_enable(info->rtc_src_clk);
+		info->clk_enabled = true;
+	}
 	spin_unlock_irqrestore(&info->alarm_clk_lock, irq_flags);
 }
 
@@ -82,9 +86,12 @@ static void s3c_rtc_disable_clk(struct s3c_rtc *info)
 	unsigned long irq_flags;
 
 	spin_lock_irqsave(&info->alarm_clk_lock, irq_flags);
-	if (info->data->needs_src_clk)
-		clk_disable(info->rtc_src_clk);
-	clk_disable(info->rtc_clk);
+	if (info->clk_enabled) {
+		if (info->data->needs_src_clk)
+			clk_disable(info->rtc_src_clk);
+		clk_disable(info->rtc_clk);
+		info->clk_enabled = false;
+	}
 	spin_unlock_irqrestore(&info->alarm_clk_lock, irq_flags);
 }
 
@@ -128,6 +135,11 @@ static int s3c_rtc_setaie(struct device *dev, unsigned int enabled)
 
 	s3c_rtc_disable_clk(info);
 
+	if (enabled)
+		s3c_rtc_enable_clk(info);
+	else
+		s3c_rtc_disable_clk(info);
+
 	return 0;
 }
 
-- 
1.9.1


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

* Re: [PATCH 1/4] rtc: s3c: add missing clk control
  2015-08-11 11:28 [PATCH 1/4] rtc: s3c: add missing clk control Joonyoung Shim
                   ` (2 preceding siblings ...)
  2015-08-11 11:28 ` [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm Joonyoung Shim
@ 2015-08-12  0:06 ` Krzysztof Kozlowski
  2015-08-20 23:06 ` Alexandre Belloni
  4 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2015-08-12  0:06 UTC (permalink / raw)
  To: Joonyoung Shim, rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi

On 11.08.2015 20:28, Joonyoung Shim wrote:
> It's missed to call clk_unprepare() about info->rtc_src_clk in
> s3c_rtc_remove and to call clk_disable_unprepare about info->rtc_clk in
> error routine of s3c_rtc_probe.
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> ---
>  drivers/rtc/rtc-s3c.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof


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

* Re: [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment
  2015-08-11 11:28 ` [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment Joonyoung Shim
@ 2015-08-12  0:07   ` Krzysztof Kozlowski
  2015-08-20 23:07   ` Alexandre Belloni
  1 sibling, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2015-08-12  0:07 UTC (permalink / raw)
  To: Joonyoung Shim, rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi

On 11.08.2015 20:28, Joonyoung Shim wrote:
> It's unnecessary the code that assigns info->rtc_clk to NULL in
> s3c_rtc_remove.
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> ---
>  drivers/rtc/rtc-s3c.c | 1 -
>  1 file changed, 1 deletion(-)

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof



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

* Re: [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk
  2015-08-11 11:28 ` [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk Joonyoung Shim
@ 2015-08-12  0:10   ` Krzysztof Kozlowski
  2015-08-12 10:26     ` Joonyoung Shim
  0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2015-08-12  0:10 UTC (permalink / raw)
  To: Joonyoung Shim, rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi

On 11.08.2015 20:28, Joonyoung Shim wrote:
> The driver uses clk_prepare_enable()/clk_disable_unprepare() only in
> probe only, elsewhere, use the unified functions for enable/disable of
> clk, e.g. s3c_rtc_enable_clk() / s3c_rtc_disable_clk(), so it's better
> to use them for consistency of code.
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> ---
>  drivers/rtc/rtc-s3c.c | 14 +++++++++-----
>  1 file changed, 9 insertions(+), 5 deletions(-)

First of all - the code is larger (9 insertions, 5 deletion) so I have
doubts if this is better.

Second - this is not equivalent change. The s3c_rtc_enable_clk/disable
calls grab spin lock which is not necessary in probe.

Best regards,
Krzysztof

> 
> diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
> index 44b2921..abe2a6d 100644
> --- a/drivers/rtc/rtc-s3c.c
> +++ b/drivers/rtc/rtc-s3c.c
> @@ -476,19 +476,21 @@ static int s3c_rtc_probe(struct platform_device *pdev)
>  		dev_err(&pdev->dev, "failed to find rtc clock\n");
>  		return PTR_ERR(info->rtc_clk);
>  	}
> -	clk_prepare_enable(info->rtc_clk);
> +	clk_prepare(info->rtc_clk);
>  
>  	if (info->data->needs_src_clk) {
>  		info->rtc_src_clk = devm_clk_get(&pdev->dev, "rtc_src");
>  		if (IS_ERR(info->rtc_src_clk)) {
>  			dev_err(&pdev->dev,
>  				"failed to find rtc source clock\n");
> -			clk_disable_unprepare(info->rtc_clk);
> +			clk_unprepare(info->rtc_clk);
>  			return PTR_ERR(info->rtc_src_clk);
>  		}
> -		clk_prepare_enable(info->rtc_src_clk);
> +		clk_prepare(info->rtc_src_clk);
>  	}
>  
> +	s3c_rtc_enable_clk(info);
> +
>  	/* check to see if everything is setup correctly */
>  	if (info->data->enable)
>  		info->data->enable(info);
> @@ -548,9 +550,11 @@ static int s3c_rtc_probe(struct platform_device *pdev)
>  	if (info->data->disable)
>  		info->data->disable(info);
>  
> +	s3c_rtc_disable_clk(info);
> +
>  	if (info->data->needs_src_clk)
> -		clk_disable_unprepare(info->rtc_src_clk);
> -	clk_disable_unprepare(info->rtc_clk);
> +		clk_unprepare(info->rtc_src_clk);
> +	clk_unprepare(info->rtc_clk);
>  
>  	return ret;
>  }
> 


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

* Re: [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm
  2015-08-11 11:28 ` [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm Joonyoung Shim
@ 2015-08-12  0:28   ` Krzysztof Kozlowski
  2015-08-12  1:09     ` Joonyoung Shim
  0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2015-08-12  0:28 UTC (permalink / raw)
  To: Joonyoung Shim, rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi

On 11.08.2015 20:28, Joonyoung Shim wrote:
> The clock enable/disable codes for alarm have removed from

What do you mean in this paragraph? The clock code was removing something?

> 'commit 24e1455493da ("drivers/rtc/rtc-s3c.c: delete duplicate clock

Remove the 'apostrophe.

> control")' and the clocks keep disabling even if alarm is set, so alarm
> interrupt can't happen.
...and the clocks are disabled even...


> 
> The s3c_rtc_setaie function can be called several times with that
> enabled argument has same value,
...several times with 'enabled' argument having same value

> so it needs to check whether clocks is
> enabled or not.
s/is/are/

> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>

Please add Cc-stable and fixes tag. To backport the patch probably
you'll have to remove the dependency on previous patches.

> ---
>  drivers/rtc/rtc-s3c.c | 24 ++++++++++++++++++------
>  1 file changed, 18 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
> index abe2a6d..fce078c 100644
> --- a/drivers/rtc/rtc-s3c.c
> +++ b/drivers/rtc/rtc-s3c.c
> @@ -39,6 +39,7 @@ struct s3c_rtc {
>  	void __iomem *base;
>  	struct clk *rtc_clk;
>  	struct clk *rtc_src_clk;
> +	bool clk_enabled;
>  
>  	struct s3c_rtc_data *data;
>  
> @@ -71,9 +72,12 @@ static void s3c_rtc_enable_clk(struct s3c_rtc *info)
>  	unsigned long irq_flags;
>  
>  	spin_lock_irqsave(&info->alarm_clk_lock, irq_flags);
> -	clk_enable(info->rtc_clk);
> -	if (info->data->needs_src_clk)
> -		clk_enable(info->rtc_src_clk);
> +	if (!info->clk_enabled) {
> +		clk_enable(info->rtc_clk);
> +		if (info->data->needs_src_clk)
> +			clk_enable(info->rtc_src_clk);
> +		info->clk_enabled = true;
> +	}
>  	spin_unlock_irqrestore(&info->alarm_clk_lock, irq_flags);
>  }
>  
> @@ -82,9 +86,12 @@ static void s3c_rtc_disable_clk(struct s3c_rtc *info)
>  	unsigned long irq_flags;
>  
>  	spin_lock_irqsave(&info->alarm_clk_lock, irq_flags);
> -	if (info->data->needs_src_clk)
> -		clk_disable(info->rtc_src_clk);
> -	clk_disable(info->rtc_clk);
> +	if (info->clk_enabled) {
> +		if (info->data->needs_src_clk)
> +			clk_disable(info->rtc_src_clk);
> +		clk_disable(info->rtc_clk);
> +		info->clk_enabled = false;
> +	}
>  	spin_unlock_irqrestore(&info->alarm_clk_lock, irq_flags);
>  }
>  
> @@ -128,6 +135,11 @@ static int s3c_rtc_setaie(struct device *dev, unsigned int enabled)
>  
>  	s3c_rtc_disable_clk(info);
>  
> +	if (enabled)
> +		s3c_rtc_enable_clk(info);
> +	else
> +		s3c_rtc_disable_clk(info);
> +
>  	return 0;
>  }

During probe the clk_enabled is false, so the clock won't be disabled at
the end of probe with s3c_rtc_disable_clk(). Maybe previous patch
interferes here so it would work after applying all 4 patches but not
when backporting. The patch in current form looks non-backportable.

Best regards,
KRzysztof

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

* Re: [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm
  2015-08-12  0:28   ` Krzysztof Kozlowski
@ 2015-08-12  1:09     ` Joonyoung Shim
  0 siblings, 0 replies; 12+ messages in thread
From: Joonyoung Shim @ 2015-08-12  1:09 UTC (permalink / raw)
  To: Krzysztof Kozlowski, rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi

On 08/12/2015 09:28 AM, Krzysztof Kozlowski wrote:
> On 11.08.2015 20:28, Joonyoung Shim wrote:
>> The clock enable/disable codes for alarm have removed from
> 
> What do you mean in this paragraph? The clock code was removing something?
> 
>> 'commit 24e1455493da ("drivers/rtc/rtc-s3c.c: delete duplicate clock
> 
> Remove the 'apostrophe.
> 
>> control")' and the clocks keep disabling even if alarm is set, so alarm
>> interrupt can't happen.
> ...and the clocks are disabled even...
> 
> 
>>
>> The s3c_rtc_setaie function can be called several times with that
>> enabled argument has same value,
> ...several times with 'enabled' argument having same value
> 
>> so it needs to check whether clocks is
>> enabled or not.
> s/is/are/
> 
>>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> 
> Please add Cc-stable and fixes tag. To backport the patch probably
> you'll have to remove the dependency on previous patches.

Thanks for the point, i didn't think it.

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

* Re: [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk
  2015-08-12  0:10   ` Krzysztof Kozlowski
@ 2015-08-12 10:26     ` Joonyoung Shim
  0 siblings, 0 replies; 12+ messages in thread
From: Joonyoung Shim @ 2015-08-12 10:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski, rtc-linux
  Cc: linux-kernel, linux-samsung-soc, a.zummo, alexandre.belloni,
	cw00.choi

On 08/12/2015 09:10 AM, Krzysztof Kozlowski wrote:
> On 11.08.2015 20:28, Joonyoung Shim wrote:
>> The driver uses clk_prepare_enable()/clk_disable_unprepare() only in
>> probe only, elsewhere, use the unified functions for enable/disable of
>> clk, e.g. s3c_rtc_enable_clk() / s3c_rtc_disable_clk(), so it's better
>> to use them for consistency of code.
>>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>> ---
>>  drivers/rtc/rtc-s3c.c | 14 +++++++++-----
>>  1 file changed, 9 insertions(+), 5 deletions(-)
> 
> First of all - the code is larger (9 insertions, 5 deletion) so I have
> doubts if this is better.
> 
> Second - this is not equivalent change. The s3c_rtc_enable_clk/disable
> calls grab spin lock which is not necessary in probe.
> 

I made this patch because of patch 4/4, but patch 4/4 should be removed
dependency from previous patches, so i will drop this patch.

Thanks.


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

* Re: [PATCH 1/4] rtc: s3c: add missing clk control
  2015-08-11 11:28 [PATCH 1/4] rtc: s3c: add missing clk control Joonyoung Shim
                   ` (3 preceding siblings ...)
  2015-08-12  0:06 ` [PATCH 1/4] rtc: s3c: add missing clk control Krzysztof Kozlowski
@ 2015-08-20 23:06 ` Alexandre Belloni
  4 siblings, 0 replies; 12+ messages in thread
From: Alexandre Belloni @ 2015-08-20 23:06 UTC (permalink / raw)
  To: Joonyoung Shim
  Cc: rtc-linux, linux-kernel, linux-samsung-soc, a.zummo, cw00.choi,
	k.kozlowski

On 11/08/2015 at 20:28:19 +0900, Joonyoung Shim wrote :
> It's missed to call clk_unprepare() about info->rtc_src_clk in
> s3c_rtc_remove and to call clk_disable_unprepare about info->rtc_clk in
> error routine of s3c_rtc_probe.
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> ---
>  drivers/rtc/rtc-s3c.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
Applied, thanks.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* Re: [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment
  2015-08-11 11:28 ` [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment Joonyoung Shim
  2015-08-12  0:07   ` Krzysztof Kozlowski
@ 2015-08-20 23:07   ` Alexandre Belloni
  1 sibling, 0 replies; 12+ messages in thread
From: Alexandre Belloni @ 2015-08-20 23:07 UTC (permalink / raw)
  To: Joonyoung Shim
  Cc: rtc-linux, linux-kernel, linux-samsung-soc, a.zummo, cw00.choi,
	k.kozlowski

On 11/08/2015 at 20:28:20 +0900, Joonyoung Shim wrote :
> It's unnecessary the code that assigns info->rtc_clk to NULL in
> s3c_rtc_remove.
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> ---
>  drivers/rtc/rtc-s3c.c | 1 -
>  1 file changed, 1 deletion(-)
> 
Applied, thanks.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-08-20 23:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-11 11:28 [PATCH 1/4] rtc: s3c: add missing clk control Joonyoung Shim
2015-08-11 11:28 ` [PATCH 2/4] rtc: s3c: remove unnecessary NULL assignment Joonyoung Shim
2015-08-12  0:07   ` Krzysztof Kozlowski
2015-08-20 23:07   ` Alexandre Belloni
2015-08-11 11:28 ` [PATCH 3/4] rtc: s3c: use unified functions for enable/disable of clk Joonyoung Shim
2015-08-12  0:10   ` Krzysztof Kozlowski
2015-08-12 10:26     ` Joonyoung Shim
2015-08-11 11:28 ` [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm Joonyoung Shim
2015-08-12  0:28   ` Krzysztof Kozlowski
2015-08-12  1:09     ` Joonyoung Shim
2015-08-12  0:06 ` [PATCH 1/4] rtc: s3c: add missing clk control Krzysztof Kozlowski
2015-08-20 23:06 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox