linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
@ 2015-08-23  9:32 Romain Perier
  2015-08-31 14:42 ` Romain Perier
  0 siblings, 1 reply; 10+ messages in thread
From: Romain Perier @ 2015-08-23  9:32 UTC (permalink / raw)
  To: linux-arm-kernel

Now that the rockchip clock subsystem does clock gating with GPIO banks,
these are no longer enabled once during probe and no longer stay enabled
for eternity. When all these clocks are disabled, the parent clock pclk_peri
might be disabled too, as no other child claims it. So, we need to add pclk_peri
to the critical clocks.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Tested-by: Michael Niewoehner <linux@mniewoehner.de>
---

changes in v2:
- Improved commit messages
- Added "Tested-by" from Michael Niewoehner, as he tested v1 and no code changed

 drivers/clk/rockchip/clk-rk3188.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c
index bf20214..839a22a 100644
--- a/drivers/clk/rockchip/clk-rk3188.c
+++ b/drivers/clk/rockchip/clk-rk3188.c
@@ -717,6 +717,7 @@ static const char *const rk3188_critical_clocks[] __initconst = {
 	"aclk_peri",
 	"hclk_peri",
 	"pclk_cpu",
+	"pclk_peri",
 };
 
 static void __init rk3188_common_clk_init(struct device_node *np)
-- 
2.1.4

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-08-23  9:32 [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188 Romain Perier
@ 2015-08-31 14:42 ` Romain Perier
  2015-09-04  6:50   ` Romain Perier
  0 siblings, 1 reply; 10+ messages in thread
From: Romain Perier @ 2015-08-31 14:42 UTC (permalink / raw)
  To: linux-arm-kernel

ping

2015-08-23 11:32 GMT+02:00 Romain Perier <romain.perier@gmail.com>:
> Now that the rockchip clock subsystem does clock gating with GPIO banks,
> these are no longer enabled once during probe and no longer stay enabled
> for eternity. When all these clocks are disabled, the parent clock pclk_peri
> might be disabled too, as no other child claims it. So, we need to add pclk_peri
> to the critical clocks.
>
> Signed-off-by: Romain Perier <romain.perier@gmail.com>
> Tested-by: Michael Niewoehner <linux@mniewoehner.de>
> ---
>
> changes in v2:
> - Improved commit messages
> - Added "Tested-by" from Michael Niewoehner, as he tested v1 and no code changed
>
>  drivers/clk/rockchip/clk-rk3188.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c
> index bf20214..839a22a 100644
> --- a/drivers/clk/rockchip/clk-rk3188.c
> +++ b/drivers/clk/rockchip/clk-rk3188.c
> @@ -717,6 +717,7 @@ static const char *const rk3188_critical_clocks[] __initconst = {
>         "aclk_peri",
>         "hclk_peri",
>         "pclk_cpu",
> +       "pclk_peri",
>  };
>
>  static void __init rk3188_common_clk_init(struct device_node *np)
> --
> 2.1.4
>

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-08-31 14:42 ` Romain Perier
@ 2015-09-04  6:50   ` Romain Perier
  2015-09-04 16:24     ` Stephen Boyd
  0 siblings, 1 reply; 10+ messages in thread
From: Romain Perier @ 2015-09-04  6:50 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

just a reminder, I sent this patch two weeks ago, rk3xxx-based
platforms still need it, it fixes a freeze during boot.

Regards,
Romain

2015-08-31 16:42 GMT+02:00 Romain Perier <romain.perier@gmail.com>:
> ping
>
> 2015-08-23 11:32 GMT+02:00 Romain Perier <romain.perier@gmail.com>:
>> Now that the rockchip clock subsystem does clock gating with GPIO banks,
>> these are no longer enabled once during probe and no longer stay enabled
>> for eternity. When all these clocks are disabled, the parent clock pclk_peri
>> might be disabled too, as no other child claims it. So, we need to add pclk_peri
>> to the critical clocks.
>>
>> Signed-off-by: Romain Perier <romain.perier@gmail.com>
>> Tested-by: Michael Niewoehner <linux@mniewoehner.de>
>> ---
>>
>> changes in v2:
>> - Improved commit messages
>> - Added "Tested-by" from Michael Niewoehner, as he tested v1 and no code changed
>>
>>  drivers/clk/rockchip/clk-rk3188.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c
>> index bf20214..839a22a 100644
>> --- a/drivers/clk/rockchip/clk-rk3188.c
>> +++ b/drivers/clk/rockchip/clk-rk3188.c
>> @@ -717,6 +717,7 @@ static const char *const rk3188_critical_clocks[] __initconst = {
>>         "aclk_peri",
>>         "hclk_peri",
>>         "pclk_cpu",
>> +       "pclk_peri",
>>  };
>>
>>  static void __init rk3188_common_clk_init(struct device_node *np)
>> --
>> 2.1.4
>>

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-04  6:50   ` Romain Perier
@ 2015-09-04 16:24     ` Stephen Boyd
  2015-09-05 16:12       ` Romain Perier
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Boyd @ 2015-09-04 16:24 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/04, Romain Perier wrote:
> Hi all,
> 
> just a reminder, I sent this patch two weeks ago, rk3xxx-based
> platforms still need it, it fixes a freeze during boot.

Sorry I thought that Linus W was going to pick this up? If not,
we can take it through clk tree as a fix for -rc1.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-04 16:24     ` Stephen Boyd
@ 2015-09-05 16:12       ` Romain Perier
  2015-09-09 17:58         ` Romain Perier
  0 siblings, 1 reply; 10+ messages in thread
From: Romain Perier @ 2015-09-05 16:12 UTC (permalink / raw)
  To: linux-arm-kernel

Np,

Yes it would be nice to take it for -rc1, because I think that 4.3
won't boot without this fix


Regards,
Romain

2015-09-04 18:24 GMT+02:00 Stephen Boyd <sboyd@codeaurora.org>:
> On 09/04, Romain Perier wrote:
>> Hi all,
>>
>> just a reminder, I sent this patch two weeks ago, rk3xxx-based
>> platforms still need it, it fixes a freeze during boot.
>
> Sorry I thought that Linus W was going to pick this up? If not,
> we can take it through clk tree as a fix for -rc1.
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> a Linux Foundation Collaborative Project

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-05 16:12       ` Romain Perier
@ 2015-09-09 17:58         ` Romain Perier
  2015-09-09 21:47           ` Stephen Boyd
  0 siblings, 1 reply; 10+ messages in thread
From: Romain Perier @ 2015-09-09 17:58 UTC (permalink / raw)
  To: linux-arm-kernel

so, which of you does take the patch for -rc1 ?

Regards,
Romain

2015-09-05 18:12 GMT+02:00 Romain Perier <romain.perier@gmail.com>:
> Np,
>
> Yes it would be nice to take it for -rc1, because I think that 4.3
> won't boot without this fix
>
>
> Regards,
> Romain
>
> 2015-09-04 18:24 GMT+02:00 Stephen Boyd <sboyd@codeaurora.org>:
>> On 09/04, Romain Perier wrote:
>>> Hi all,
>>>
>>> just a reminder, I sent this patch two weeks ago, rk3xxx-based
>>> platforms still need it, it fixes a freeze during boot.
>>
>> Sorry I thought that Linus W was going to pick this up? If not,
>> we can take it through clk tree as a fix for -rc1.
>>
>> --
>> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
>> a Linux Foundation Collaborative Project

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-09 17:58         ` Romain Perier
@ 2015-09-09 21:47           ` Stephen Boyd
  2015-09-10  7:05             ` Romain Perier
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Boyd @ 2015-09-09 21:47 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/09, Romain Perier wrote:
> so, which of you does take the patch for -rc1 ?
> 

Please stop top posting. I was going to take it after -rc1 is
tagged, but I can't tell what branch this is based on. It doesn't
apply to clk-next, nor to torvalds' tree, or linux-next. Is there
some other patch out there that's also needed?

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-09 21:47           ` Stephen Boyd
@ 2015-09-10  7:05             ` Romain Perier
  2015-09-10 16:40               ` Michael Niewoehner
  0 siblings, 1 reply; 10+ messages in thread
From: Romain Perier @ 2015-09-10  7:05 UTC (permalink / raw)
  To: linux-arm-kernel

It was based on linux-next few weeks ago. I will rebase it today and send a v3.

2015-09-09 23:47 GMT+02:00 Stephen Boyd <sboyd@codeaurora.org>:
> On 09/09, Romain Perier wrote:
>> so, which of you does take the patch for -rc1 ?
>>
> Is there some other patch out there that's also needed?

No, that's a single patch.

Romain

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-10  7:05             ` Romain Perier
@ 2015-09-10 16:40               ` Michael Niewoehner
  2015-09-10 20:51                 ` Stephen Boyd
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Niewoehner @ 2015-09-10 16:40 UTC (permalink / raw)
  To: linux-arm-kernel


Am 10.09.2015 um 09:05 schrieb Romain Perier <romain.perier@gmail.com>:

> It was based on linux-next few weeks ago. I will rebase it today and send a v3.
> 
> 2015-09-09 23:47 GMT+02:00 Stephen Boyd <sboyd@codeaurora.org>:
>> On 09/09, Romain Perier wrote:
>>> so, which of you does take the patch for -rc1 ?
>>> 
>> Is there some other patch out there that's also needed?
> 
> No, that's a single patch.
> 
> Romain
> 

Hi Stephen,

Romain?s patch was applied after mine in his github tree so you?ll need to apply that first: [PATCH v3] clk: rockchip: add pclk_cpu to the list of rk3188 critical clocks

Best regards
Michael

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

* [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188
  2015-09-10 16:40               ` Michael Niewoehner
@ 2015-09-10 20:51                 ` Stephen Boyd
  0 siblings, 0 replies; 10+ messages in thread
From: Stephen Boyd @ 2015-09-10 20:51 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/10, Michael Niewoehner wrote:
> 
> Am 10.09.2015 um 09:05 schrieb Romain Perier <romain.perier@gmail.com>:
> 
> > It was based on linux-next few weeks ago. I will rebase it today and send a v3.
> > 
> > 2015-09-09 23:47 GMT+02:00 Stephen Boyd <sboyd@codeaurora.org>:
> >> On 09/09, Romain Perier wrote:
> >>> so, which of you does take the patch for -rc1 ?
> >>> 
> >> Is there some other patch out there that's also needed?
> > 
> > No, that's a single patch.
> > 
> > Romain
> > 
> 
> Hi Stephen,
> 
> Romain?s patch was applied after mine in his github tree so you?ll need to apply that first: [PATCH v3] clk: rockchip: add pclk_cpu to the list of rk3188 critical clocks
> 

Ah ok. Consider both applied to clk-fixes.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

end of thread, other threads:[~2015-09-10 20:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-23  9:32 [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188 Romain Perier
2015-08-31 14:42 ` Romain Perier
2015-09-04  6:50   ` Romain Perier
2015-09-04 16:24     ` Stephen Boyd
2015-09-05 16:12       ` Romain Perier
2015-09-09 17:58         ` Romain Perier
2015-09-09 21:47           ` Stephen Boyd
2015-09-10  7:05             ` Romain Perier
2015-09-10 16:40               ` Michael Niewoehner
2015-09-10 20:51                 ` Stephen Boyd

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