All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: x86: Set default parent to 48Mhz
@ 2018-08-21  6:51 ` Akshu Agrawal
  0 siblings, 0 replies; 8+ messages in thread
From: Akshu Agrawal @ 2018-08-21  6:51 UTC (permalink / raw)
  Cc: djkurtz, akshu.agrawal, Alexander.Deucher, Michael Turquette,
	Stephen Boyd, Akshu Agrawal, Rafael J. Wysocki,
	open list:COMMON CLK FRAMEWORK, open list

System clk provided in ST soc can be set to:
48Mhz, non-spread
25Mhz, spread
To get accurate rate, we need it to set it at non-spread
option which is 48Mhz.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
---
 drivers/clk/x86/clk-st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-st.c
index fb62f39..3a0996f 100644
--- a/drivers/clk/x86/clk-st.c
+++ b/drivers/clk/x86/clk-st.c
@@ -46,7 +46,7 @@ static int st_clk_probe(struct platform_device *pdev)
 		clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents),
 		0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL);
 
-	clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_25M]->clk);
+	clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_48M]->clk);
 
 	hws[ST_CLK_GATE] = clk_hw_register_gate(NULL, "oscout1", "oscout1_mux",
 		0, st_data->base + MISCCLKCNTL1, OSCCLKENB,
-- 
1.9.1


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

* [PATCH] clk: x86: Set default parent to 48Mhz
@ 2018-08-21  6:51 ` Akshu Agrawal
  0 siblings, 0 replies; 8+ messages in thread
From: Akshu Agrawal @ 2018-08-21  6:51 UTC (permalink / raw)
  Cc: djkurtz, akshu.agrawal, Alexander.Deucher, Michael Turquette,
	Stephen Boyd, Akshu Agrawal, Rafael J. Wysocki,
	open list:COMMON CLK FRAMEWORK, open list

System clk provided in ST soc can be set to:
48Mhz, non-spread
25Mhz, spread
To get accurate rate, we need it to set it at non-spread
option which is 48Mhz.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
---
 drivers/clk/x86/clk-st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-st.c
index fb62f39..3a0996f 100644
--- a/drivers/clk/x86/clk-st.c
+++ b/drivers/clk/x86/clk-st.c
@@ -46,7 +46,7 @@ static int st_clk_probe(struct platform_device *pdev)
 		clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents),
 		0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL);
 
-	clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_25M]->clk);
+	clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_48M]->clk);
 
 	hws[ST_CLK_GATE] = clk_hw_register_gate(NULL, "oscout1", "oscout1_mux",
 		0, st_data->base + MISCCLKCNTL1, OSCCLKENB,
-- 
1.9.1

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

* Re: [PATCH] clk: x86: Set default parent to 48Mhz
  2018-08-21  6:51 ` Akshu Agrawal
  (?)
@ 2018-08-27 23:00 ` Daniel Kurtz
  -1 siblings, 0 replies; 8+ messages in thread
From: Daniel Kurtz @ 2018-08-27 23:00 UTC (permalink / raw)
  To: Akshu Agrawal
  Cc: Alexander.Deucher, Mike Turquette, sboyd, rafael.j.wysocki,
	linux-clk, linux-kernel

On Tue, Aug 21, 2018 at 12:53 AM Akshu Agrawal <akshu.agrawal@amd.com> wrote:
>
> System clk provided in ST soc can be set to:
> 48Mhz, non-spread
> 25Mhz, spread
> To get accurate rate, we need it to set it at non-spread
> option which is 48Mhz.
>
> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>

Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>

> ---
>  drivers/clk/x86/clk-st.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-st.c
> index fb62f39..3a0996f 100644
> --- a/drivers/clk/x86/clk-st.c
> +++ b/drivers/clk/x86/clk-st.c
> @@ -46,7 +46,7 @@ static int st_clk_probe(struct platform_device *pdev)
>                 clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents),
>                 0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL);
>
> -       clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_25M]->clk);
> +       clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_48M]->clk);
>
>         hws[ST_CLK_GATE] = clk_hw_register_gate(NULL, "oscout1", "oscout1_mux",
>                 0, st_data->base + MISCCLKCNTL1, OSCCLKENB,
> --
> 1.9.1
>

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

* Re: [PATCH] clk: x86: Set default parent to 48Mhz
  2018-08-21  6:51 ` Akshu Agrawal
@ 2018-08-28 22:29   ` Stephen Boyd
  -1 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2018-08-28 22:29 UTC (permalink / raw)
  To: Akshu Agrawal
  Cc: djkurtz, akshu.agrawal, Alexander.Deucher, Michael Turquette,
	Akshu Agrawal, Rafael J. Wysocki, open list:COMMON CLK FRAMEWORK,
	open list

Quoting Akshu Agrawal (2018-08-20 23:51:57)
> System clk provided in ST soc can be set to:
> 48Mhz, non-spread
> 25Mhz, spread
> To get accurate rate, we need it to set it at non-spread
> option which is 48Mhz.
> 
> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>

Does this need to go to 4.18 stable trees? I don't see a fixes tag so
I'm trying to understand merge priority of this patch.


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

* Re: [PATCH] clk: x86: Set default parent to 48Mhz
@ 2018-08-28 22:29   ` Stephen Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2018-08-28 22:29 UTC (permalink / raw)
  To: , Akshu Agrawal
  Cc: djkurtz, akshu.agrawal, Alexander.Deucher, Michael Turquette,
	Akshu Agrawal, Rafael J. Wysocki, open list:COMMON CLK FRAMEWORK,
	open list

Quoting Akshu Agrawal (2018-08-20 23:51:57)
> System clk provided in ST soc can be set to:
> 48Mhz, non-spread
> 25Mhz, spread
> To get accurate rate, we need it to set it at non-spread
> option which is 48Mhz.
> =

> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>

Does this need to go to 4.18 stable trees? I don't see a fixes tag so
I'm trying to understand merge priority of this patch.

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

* Re: [PATCH] clk: x86: Set default parent to 48Mhz
  2018-08-28 22:29   ` Stephen Boyd
  (?)
@ 2018-08-29  4:24   ` Agrawal, Akshu
  -1 siblings, 0 replies; 8+ messages in thread
From: Agrawal, Akshu @ 2018-08-29  4:24 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: djkurtz, Alexander.Deucher, Michael Turquette, Rafael J. Wysocki,
	open list:COMMON CLK FRAMEWORK, open list



On 8/29/2018 3:59 AM, Stephen Boyd wrote:
> Quoting Akshu Agrawal (2018-08-20 23:51:57)
>> System clk provided in ST soc can be set to:
>> 48Mhz, non-spread
>> 25Mhz, spread
>> To get accurate rate, we need it to set it at non-spread
>> option which is 48Mhz.
>>
>> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
> 
> Does this need to go to 4.18 stable trees? I don't see a fixes tag so
> I'm trying to understand merge priority of this patch.
> 
Yes, and its a fix, as it fixes the in accuracy in the bclk which is
derived from this clk.

Thanks,
Akshu

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

* Re: [PATCH] clk: x86: Set default parent to 48Mhz
  2018-08-21  6:51 ` Akshu Agrawal
@ 2018-08-30 21:47   ` Stephen Boyd
  -1 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2018-08-30 21:47 UTC (permalink / raw)
  To: Akshu Agrawal
  Cc: djkurtz, akshu.agrawal, Alexander.Deucher, Michael Turquette,
	Akshu Agrawal, Rafael J. Wysocki, open list:COMMON CLK FRAMEWORK,
	open list

Quoting Akshu Agrawal (2018-08-20 23:51:57)
> System clk provided in ST soc can be set to:
> 48Mhz, non-spread
> 25Mhz, spread
> To get accurate rate, we need it to set it at non-spread
> option which is 48Mhz.
> 
> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
> ---

Applied to clk-fixes


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

* Re: [PATCH] clk: x86: Set default parent to 48Mhz
@ 2018-08-30 21:47   ` Stephen Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2018-08-30 21:47 UTC (permalink / raw)
  To: , Akshu Agrawal
  Cc: djkurtz, akshu.agrawal, Alexander.Deucher, Michael Turquette,
	Akshu Agrawal, Rafael J. Wysocki, open list:COMMON CLK FRAMEWORK,
	open list

Quoting Akshu Agrawal (2018-08-20 23:51:57)
> System clk provided in ST soc can be set to:
> 48Mhz, non-spread
> 25Mhz, spread
> To get accurate rate, we need it to set it at non-spread
> option which is 48Mhz.
> =

> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
> ---

Applied to clk-fixes

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

end of thread, other threads:[~2018-08-30 21:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-21  6:51 [PATCH] clk: x86: Set default parent to 48Mhz Akshu Agrawal
2018-08-21  6:51 ` Akshu Agrawal
2018-08-27 23:00 ` Daniel Kurtz
2018-08-28 22:29 ` Stephen Boyd
2018-08-28 22:29   ` Stephen Boyd
2018-08-29  4:24   ` Agrawal, Akshu
2018-08-30 21:47 ` Stephen Boyd
2018-08-30 21:47   ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.