* [PATCH] clk: tegra: initialise parent of uart clocks
@ 2013-02-06 10:47 Laxman Dewangan
[not found] ` <1360147661-5435-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Laxman Dewangan @ 2013-02-06 10:47 UTC (permalink / raw)
To: swarren-DDmLM1+adcrQT0dZR+AlfA, mturquette-QSEj5FYQhm4dnm+yROfE0A
Cc: pgaikwad-DDmLM1+adcrQT0dZR+AlfA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Laxman Dewangan
Initialise the parent of UARTs to PLLP and disabling clock by
default.
Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
drivers/clk/tegra/clk-tegra20.c | 3 +++
drivers/clk/tegra/clk-tegra30.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c
index 5d41569..dea94f4 100644
--- a/drivers/clk/tegra/clk-tegra20.c
+++ b/drivers/clk/tegra/clk-tegra20.c
@@ -1252,7 +1252,10 @@ static __initdata struct tegra_clk_init_table init_table[] = {
{emc, clk_max, 0, 1},
{cclk, clk_max, 0, 1},
{uarta, pll_p, 0, 1},
+ {uartb, pll_p, 0, 0},
+ {uartc, pll_p, 0, 0},
{uartd, pll_p, 0, 1},
+ {uarte, pll_p, 0, 0},
{usbd, clk_max, 12000000, 0},
{usb2, clk_max, 12000000, 0},
{usb3, clk_max, 12000000, 0},
diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c
index a163812..d50146b 100644
--- a/drivers/clk/tegra/clk-tegra30.c
+++ b/drivers/clk/tegra/clk-tegra30.c
@@ -1875,6 +1875,10 @@ static struct tegra_cpu_car_ops tegra30_cpu_car_ops = {
static __initdata struct tegra_clk_init_table init_table[] = {
{uarta, pll_p, 408000000, 1},
+ {uartb, pll_p, 408000000, 0},
+ {uartc, pll_p, 408000000, 0},
+ {uartd, pll_p, 408000000, 0},
+ {uarte, pll_p, 408000000, 0},
{pll_a, clk_max, 564480000, 1},
{pll_a_out0, clk_max, 11289600, 1},
{extern1, pll_a_out0, 0, 1},
--
1.7.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread[parent not found: <1360147661-5435-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] clk: tegra: initialise parent of uart clocks [not found] ` <1360147661-5435-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2013-02-06 12:22 ` Peter De Schrijver [not found] ` <20130206122239.GH3073-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> 2013-02-06 17:43 ` Stephen Warren 1 sibling, 1 reply; 7+ messages in thread From: Peter De Schrijver @ 2013-02-06 12:22 UTC (permalink / raw) To: Laxman Dewangan Cc: Stephen Warren, mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, Prashant Gaikwad, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Wed, Feb 06, 2013 at 11:47:41AM +0100, Laxman Dewangan wrote: > Initialise the parent of UARTs to PLLP and disabling clock by > default. > I wonder if we should move the parent definitions to DT at some point. Cheers, Peter. ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20130206122239.GH3073-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] clk: tegra: initialise parent of uart clocks [not found] ` <20130206122239.GH3073-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org> @ 2013-02-06 17:37 ` Stephen Warren 0 siblings, 0 replies; 7+ messages in thread From: Stephen Warren @ 2013-02-06 17:37 UTC (permalink / raw) To: Peter De Schrijver, Prashant Gaikwad Cc: Laxman Dewangan, Stephen Warren, mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 02/06/2013 05:22 AM, Peter De Schrijver wrote: > On Wed, Feb 06, 2013 at 11:47:41AM +0100, Laxman Dewangan wrote: >> Initialise the parent of UARTs to PLLP and disabling clock by >> default. >> > > I wonder if we should move the parent definitions to DT at some point. I think that's what Prashant is going to work on next, right? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] clk: tegra: initialise parent of uart clocks [not found] ` <1360147661-5435-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2013-02-06 12:22 ` Peter De Schrijver @ 2013-02-06 17:43 ` Stephen Warren [not found] ` <5112964D.50707-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 1 sibling, 1 reply; 7+ messages in thread From: Stephen Warren @ 2013-02-06 17:43 UTC (permalink / raw) To: Laxman Dewangan Cc: swarren-DDmLM1+adcrQT0dZR+AlfA, mturquette-QSEj5FYQhm4dnm+yROfE0A, pgaikwad-DDmLM1+adcrQT0dZR+AlfA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-tegra-u79uwXL29TY76Z2rM5mHXA On 02/06/2013 03:47 AM, Laxman Dewangan wrote: > Initialise the parent of UARTs to PLLP OK > and disabling clock by default. Hmm. Only the clocks initialized by the new entries you added are marked disabled (or rather, not actively enabled; if they're enabled already, they won't be disabled). We should treat all UARTs equally. Historically we've needed to enable the serial clocks forcibly since the regular serial driver didn't call clk_get() or clk_prepare_enable() on any clocks, but I notice that it does now, since sometime in kernel 3.8. As such, I think you can modify all the UART entries in these tables to have the enable/state field set to false (0). Can you try that and check that it works for the serial console ports? Thanks. ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <5112964D.50707-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH] clk: tegra: initialise parent of uart clocks [not found] ` <5112964D.50707-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2013-02-12 15:22 ` Laxman Dewangan 0 siblings, 0 replies; 7+ messages in thread From: Laxman Dewangan @ 2013-02-12 15:22 UTC (permalink / raw) To: Stephen Warren Cc: Stephen Warren, mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, Prashant Gaikwad, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Wednesday 06 February 2013 11:13 PM, Stephen Warren wrote: > On 02/06/2013 03:47 AM, Laxman Dewangan wrote: >> Initialise the parent of UARTs to PLLP > OK > >> and disabling clock by default. > Hmm. Only the clocks initialized by the new entries you added are marked > disabled (or rather, not actively enabled; if they're enabled already, > they won't be disabled). We should treat all UARTs equally. Historically > we've needed to enable the serial clocks forcibly since the regular > serial driver didn't call clk_get() or clk_prepare_enable() on any > clocks, but I notice that it does now, since sometime in kernel 3.8. As > such, I think you can modify all the UART entries in these tables to > have the enable/state field set to false (0). Can you try that and check > that it works for the serial console ports? Thanks. Yes, this work even if I make state to 0 (disabled) in clock init table. The of_serial driver call the clk_prepare_enable() if property "clock_frequency" is there in dt node and in our dts file, we have already this property. I sent V2 patch. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] clk: tegra: initialise parent of uart clocks
@ 2013-02-12 15:17 Laxman Dewangan
[not found] ` <1360682233-23016-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Laxman Dewangan @ 2013-02-12 15:17 UTC (permalink / raw)
To: swarren, mturquette
Cc: pgaikwad, pdeschrijver, linux-kernel, linux-tegra,
Laxman Dewangan
Initialise the parent of UARTs to PLLP and disabling clock by
default.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
As suggested by Stephen, Make other uarts clock state to disable as
driver already enable these clocks.
drivers/clk/tegra/clk-tegra20.c | 7 +++++--
drivers/clk/tegra/clk-tegra30.c | 6 +++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c
index 4612b2e..8b5241e 100644
--- a/drivers/clk/tegra/clk-tegra20.c
+++ b/drivers/clk/tegra/clk-tegra20.c
@@ -1254,8 +1254,11 @@ static __initdata struct tegra_clk_init_table init_table[] = {
{csite, clk_max, 0, 1},
{emc, clk_max, 0, 1},
{cclk, clk_max, 0, 1},
- {uarta, pll_p, 0, 1},
- {uartd, pll_p, 0, 1},
+ {uarta, pll_p, 0, 0},
+ {uartb, pll_p, 0, 0},
+ {uartc, pll_p, 0, 0},
+ {uartd, pll_p, 0, 0},
+ {uarte, pll_p, 0, 0},
{usbd, clk_max, 12000000, 0},
{usb2, clk_max, 12000000, 0},
{usb3, clk_max, 12000000, 0},
diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c
index bf050bc..56925e1 100644
--- a/drivers/clk/tegra/clk-tegra30.c
+++ b/drivers/clk/tegra/clk-tegra30.c
@@ -1877,7 +1877,11 @@ static struct tegra_cpu_car_ops tegra30_cpu_car_ops = {
};
static __initdata struct tegra_clk_init_table init_table[] = {
- {uarta, pll_p, 408000000, 1},
+ {uarta, pll_p, 408000000, 0},
+ {uartb, pll_p, 408000000, 0},
+ {uartc, pll_p, 408000000, 0},
+ {uartd, pll_p, 408000000, 0},
+ {uarte, pll_p, 408000000, 0},
{pll_a, clk_max, 564480000, 1},
{pll_a_out0, clk_max, 11289600, 1},
{extern1, pll_a_out0, 0, 1},
--
1.7.1.1
^ permalink raw reply related [flat|nested] 7+ messages in thread[parent not found: <1360682233-23016-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] clk: tegra: initialise parent of uart clocks [not found] ` <1360682233-23016-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2013-02-12 15:19 ` Laxman Dewangan 0 siblings, 0 replies; 7+ messages in thread From: Laxman Dewangan @ 2013-02-12 15:19 UTC (permalink / raw) To: Laxman Dewangan Cc: Stephen Warren, mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, Prashant Gaikwad, Peter De Schrijver, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Tuesday 12 February 2013 08:47 PM, Laxman Dewangan wrote: > Initialise the parent of UARTs to PLLP and disabling clock by > default. > > Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- Please ignore this, I just sent the other patch as V2 to have more appropriate version. Please review the Patch V2. Sorry for spam/inconvenience. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-02-12 15:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 10:47 [PATCH] clk: tegra: initialise parent of uart clocks Laxman Dewangan
[not found] ` <1360147661-5435-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-02-06 12:22 ` Peter De Schrijver
[not found] ` <20130206122239.GH3073-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2013-02-06 17:37 ` Stephen Warren
2013-02-06 17:43 ` Stephen Warren
[not found] ` <5112964D.50707-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-02-12 15:22 ` Laxman Dewangan
-- strict thread matches above, loose matches on Subject: below --
2013-02-12 15:17 Laxman Dewangan
[not found] ` <1360682233-23016-1-git-send-email-ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-02-12 15:19 ` Laxman Dewangan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox