linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
@ 2016-04-14  4:42 Alim Akhtar
  2016-04-14  7:50 ` Krzysztof Kozlowski
  2016-05-30 12:50 ` Sylwester Nawrocki
  0 siblings, 2 replies; 7+ messages in thread
From: Alim Akhtar @ 2016-04-14  4:42 UTC (permalink / raw)
  To: linux-arm-kernel, s.nawrocki
  Cc: thomas.ab, k.kozlowski, linux-kernel, linux-samsung-soc,
	linux-clk, sboyd, mturquette, tomasz.figa

This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
blocks registers. Let these clocks to be enabled all the time.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
 drivers/clk/samsung/clk-exynos7.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/samsung/clk-exynos7.c b/drivers/clk/samsung/clk-exynos7.c
index ad68d46..03a82da 100644
--- a/drivers/clk/samsung/clk-exynos7.c
+++ b/drivers/clk/samsung/clk-exynos7.c
@@ -146,7 +146,7 @@ static struct samsung_pll_rate_table pll1460x_24mhz_tbl[] __initdata = {
 
 static struct samsung_gate_clock topc_gate_clks[] __initdata = {
 	GATE(ACLK_CCORE_133, "aclk_ccore_133", "dout_aclk_ccore_133",
-		ENABLE_ACLK_TOPC0, 4, 0, 0),
+		ENABLE_ACLK_TOPC0, 4, CLK_IS_CRITICAL, 0),
 
 	GATE(ACLK_MSCL_532, "aclk_mscl_532", "dout_aclk_mscl_532",
 		ENABLE_ACLK_TOPC1, 20, 0, 0),
@@ -539,7 +539,8 @@ static struct samsung_gate_clock top1_gate_clks[] __initdata = {
 		ENABLE_SCLK_TOP1_FSYS11, 12, CLK_SET_RATE_PARENT, 0),
 
 	GATE(CLK_ACLK_FSYS0_200, "aclk_fsys0_200", "dout_aclk_fsys0_200",
-		ENABLE_ACLK_TOP13, 28, CLK_SET_RATE_PARENT, 0),
+		ENABLE_ACLK_TOP13, 28, CLK_SET_RATE_PARENT |
+		CLK_IS_CRITICAL, 0),
 	GATE(CLK_ACLK_FSYS1_200, "aclk_fsys1_200", "dout_aclk_fsys1_200",
 		ENABLE_ACLK_TOP13, 24, CLK_SET_RATE_PARENT, 0),
 
-- 
1.7.10.4

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

* Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
  2016-04-14  4:42 [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock Alim Akhtar
@ 2016-04-14  7:50 ` Krzysztof Kozlowski
  2016-04-15 12:37   ` Alim Akhtar
  2016-05-30 12:50 ` Sylwester Nawrocki
  1 sibling, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2016-04-14  7:50 UTC (permalink / raw)
  To: Alim Akhtar, linux-arm-kernel, s.nawrocki
  Cc: thomas.ab, linux-kernel, linux-samsung-soc, linux-clk, sboyd,
	mturquette, tomasz.figa

On 04/14/2016 06:42 AM, Alim Akhtar wrote:
> This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
> clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
> blocks registers. Let these clocks to be enabled all the time.
> 
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
>  drivers/clk/samsung/clk-exynos7.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

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

Best regards,
Krzysztof

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

* Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
  2016-04-14  7:50 ` Krzysztof Kozlowski
@ 2016-04-15 12:37   ` Alim Akhtar
  2016-04-15 16:34     ` Sylwester Nawrocki
  0 siblings, 1 reply; 7+ messages in thread
From: Alim Akhtar @ 2016-04-15 12:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski, linux-arm-kernel, s.nawrocki
  Cc: thomas.ab, linux-kernel, linux-samsung-soc, linux-clk, sboyd,
	mturquette, tomasz.figa



On 04/14/2016 01:20 PM, Krzysztof Kozlowski wrote:
> On 04/14/2016 06:42 AM, Alim Akhtar wrote:
>> This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
>> clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
>> blocks registers. Let these clocks to be enabled all the time.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>>   drivers/clk/samsung/clk-exynos7.c |    5 +++--
>>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
>
Thanks Krzysztof,
Sylwester, do you have any concern here?

> Best regards,
> Krzysztof
>
>

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

* Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
  2016-04-15 12:37   ` Alim Akhtar
@ 2016-04-15 16:34     ` Sylwester Nawrocki
  2016-05-25  6:04       ` Alim Akhtar
  0 siblings, 1 reply; 7+ messages in thread
From: Sylwester Nawrocki @ 2016-04-15 16:34 UTC (permalink / raw)
  To: Alim Akhtar
  Cc: Krzysztof Kozlowski, linux-arm-kernel, thomas.ab, linux-kernel,
	linux-samsung-soc, linux-clk, sboyd, mturquette, tomasz.figa

On 04/15/2016 02:37 PM, Alim Akhtar wrote:
> On 04/14/2016 01:20 PM, Krzysztof Kozlowski wrote:
>> > On 04/14/2016 06:42 AM, Alim Akhtar wrote:
>>> >> This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
>>> >> clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
>>> >> blocks registers. Let these clocks to be enabled all the time.
>>> >>
>>> >> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>> >> ---
>>> >>   drivers/clk/samsung/clk-exynos7.c |    5 +++--
>>> >>   1 file changed, 3 insertions(+), 2 deletions(-)
>> >
>> > Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
>> >
> Thanks Krzysztof,
> Sylwester, do you have any concern here?

I'm fine with the patch, if it fixes all the issues for you.
I will apply it and will likely send it upstream after v4.7-rc1 release.

-- 
Regards,
Sylwester

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

* Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
  2016-04-15 16:34     ` Sylwester Nawrocki
@ 2016-05-25  6:04       ` Alim Akhtar
  2016-05-25 10:49         ` Sylwester Nawrocki
  0 siblings, 1 reply; 7+ messages in thread
From: Alim Akhtar @ 2016-05-25  6:04 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: Krzysztof Kozlowski, linux-arm-kernel, thomas.ab, linux-kernel,
	linux-samsung-soc, linux-clk, sboyd, mturquette, tomasz.figa

Hi Sylwester,

On 04/15/2016 10:04 PM, Sylwester Nawrocki wrote:
> On 04/15/2016 02:37 PM, Alim Akhtar wrote:
>> On 04/14/2016 01:20 PM, Krzysztof Kozlowski wrote:
>>>> On 04/14/2016 06:42 AM, Alim Akhtar wrote:
>>>>>> This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
>>>>>> clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
>>>>>> blocks registers. Let these clocks to be enabled all the time.
>>>>>>
>>>>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>>>>> ---
>>>>>>    drivers/clk/samsung/clk-exynos7.c |    5 +++--
>>>>>>    1 file changed, 3 insertions(+), 2 deletions(-)
>>>>
>>>> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
>>>>
>> Thanks Krzysztof,
>> Sylwester, do you have any concern here?
>
> I'm fine with the patch, if it fixes all the issues for you.
> I will apply it and will likely send it upstream after v4.7-rc1 release.
>
Looks like this patch is not available on your tree.

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

* Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
  2016-05-25  6:04       ` Alim Akhtar
@ 2016-05-25 10:49         ` Sylwester Nawrocki
  0 siblings, 0 replies; 7+ messages in thread
From: Sylwester Nawrocki @ 2016-05-25 10:49 UTC (permalink / raw)
  To: Alim Akhtar
  Cc: Krzysztof Kozlowski, linux-arm-kernel, thomas.ab, linux-kernel,
	linux-samsung-soc, linux-clk, sboyd, mturquette, tomasz.figa

Hi Alim,

On 05/25/2016 08:04 AM, Alim Akhtar wrote:
> Looks like this patch is not available on your tree.

Thanks for the reminder, I'll apply it next week, after 3.7-rc1 is released.

-- 
Regards,
Sylwester

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

* Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock
  2016-04-14  4:42 [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock Alim Akhtar
  2016-04-14  7:50 ` Krzysztof Kozlowski
@ 2016-05-30 12:50 ` Sylwester Nawrocki
  1 sibling, 0 replies; 7+ messages in thread
From: Sylwester Nawrocki @ 2016-05-30 12:50 UTC (permalink / raw)
  To: Alim Akhtar
  Cc: linux-arm-kernel, thomas.ab, k.kozlowski, linux-kernel,
	linux-samsung-soc, linux-clk, sboyd, mturquette, tomasz.figa

On 04/14/2016 06:42 AM, Alim Akhtar wrote:
> This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
> clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
> blocks registers. Let these clocks to be enabled all the time.
> 
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>

Patch applied, thanks.

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

end of thread, other threads:[~2016-05-30 12:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14  4:42 [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock Alim Akhtar
2016-04-14  7:50 ` Krzysztof Kozlowski
2016-04-15 12:37   ` Alim Akhtar
2016-04-15 16:34     ` Sylwester Nawrocki
2016-05-25  6:04       ` Alim Akhtar
2016-05-25 10:49         ` Sylwester Nawrocki
2016-05-30 12:50 ` Sylwester Nawrocki

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).