* [PATCH V4 1/4] ARM: tegra30: clocks: Fix pciex clock registration
@ 2013-06-12 7:13 Jay Agarwal
[not found] ` <1371021223-6709-1-git-send-email-jagarwal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jay Agarwal @ 2013-06-12 7:13 UTC (permalink / raw)
To: linux, swarren, thierry.reding, bhelgaas, ldewangan, olof, hdoyu,
pgaikwad, mturquette, pdeschrijver, linux-arm-kernel, linux-tegra,
linux-kernel, linux-pci
Cc: jtukkinen, kthota, jagarwal
Registering pciex as peripheral clock instead of fixed clock
as tegra_perih_reset_assert(deassert) api of this clock api
gives warning and ultimately does not succeed to assert(deassert)
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
---
Patch is based on remotes/gitorious_thierryreding_linux/tegra/next and should be applied on top of this.
Changes in V4:
- Avoid modifying tegra pcie driver name for duplicate clocks as per review comments
drivers/clk/tegra/clk-tegra30.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c
index c6921f5..ba99e38 100644
--- a/drivers/clk/tegra/clk-tegra30.c
+++ b/drivers/clk/tegra/clk-tegra30.c
@@ -1598,6 +1598,12 @@ static void __init tegra30_periph_clk_init(void)
clk_register_clkdev(clk, "afi", "tegra-pcie");
clks[afi] = clk;
+ /* pciex */
+ clk = tegra_clk_register_periph_gate("pciex", "pll_e", 0, clk_base, 0,
+ 74, &periph_u_regs, periph_clk_enb_refcnt);
+ clk_register_clkdev(clk, "pciex", "tegra-pcie");
+ clks[pciex] = clk;
+
/* kfuse */
clk = tegra_clk_register_periph_gate("kfuse", "clk_m",
TEGRA_PERIPH_ON_APB,
@@ -1716,11 +1722,6 @@ static void __init tegra30_fixed_clk_init(void)
1, 0, &cml_lock);
clk_register_clkdev(clk, "cml1", NULL);
clks[cml1] = clk;
-
- /* pciex */
- clk = clk_register_fixed_rate(NULL, "pciex", "pll_e", 0, 100000000);
- clk_register_clkdev(clk, "pciex", NULL);
- clks[pciex] = clk;
}
static void __init tegra30_osc_clk_init(void)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1371021223-6709-1-git-send-email-jagarwal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH V4 1/4] ARM: tegra30: clocks: Fix pciex clock registration [not found] ` <1371021223-6709-1-git-send-email-jagarwal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2013-06-12 15:36 ` Stephen Warren [not found] ` <51B8956B.8020704-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Stephen Warren @ 2013-06-12 15:36 UTC (permalink / raw) To: Jay Agarwal, mturquette-QSEj5FYQhm4dnm+yROfE0A Cc: linux-lFZ/pmaqli7XmaaqVzeoHQ, thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB, bhelgaas-hpIqsD4AKlfQT0dZR+AlfA, ldewangan-DDmLM1+adcrQT0dZR+AlfA, olof-nZhT3qVonbNeoWH0uzbU5w, hdoyu-DDmLM1+adcrQT0dZR+AlfA, pgaikwad-DDmLM1+adcrQT0dZR+AlfA, pdeschrijver-DDmLM1+adcrQT0dZR+AlfA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-pci-u79uwXL29TY76Z2rM5mHXA, jtukkinen-DDmLM1+adcrQT0dZR+AlfA, kthota-DDmLM1+adcrQT0dZR+AlfA On 06/12/2013 01:13 AM, Jay Agarwal wrote: > Registering pciex as peripheral clock instead of fixed clock > as tegra_perih_reset_assert(deassert) api of this clock api > gives warning and ultimately does not succeed to assert(deassert) > > Signed-off-by: Jay Agarwal <jagarwal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- > Patch is based on remotes/gitorious_thierryreding_linux/tegra/next and should be applied on top of this. In this case, it would make more sense to apply this to the clock tree, since it's a standalone bug-fix. Acked-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <51B8956B.8020704-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>]
* Re: [PATCH V4 1/4] ARM: tegra30: clocks: Fix pciex clock registration [not found] ` <51B8956B.8020704-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> @ 2013-06-16 18:51 ` Mike Turquette 0 siblings, 0 replies; 3+ messages in thread From: Mike Turquette @ 2013-06-16 18:51 UTC (permalink / raw) To: Stephen Warren, Jay Agarwal Cc: linux-lFZ/pmaqli7XmaaqVzeoHQ, thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB, bhelgaas-hpIqsD4AKlfQT0dZR+AlfA, ldewangan-DDmLM1+adcrQT0dZR+AlfA, olof-nZhT3qVonbNeoWH0uzbU5w, hdoyu-DDmLM1+adcrQT0dZR+AlfA, pgaikwad-DDmLM1+adcrQT0dZR+AlfA, pdeschrijver-DDmLM1+adcrQT0dZR+AlfA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-tegra-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-pci-u79uwXL29TY76Z2rM5mHXA, jtukkinen-DDmLM1+adcrQT0dZR+AlfA, kthota-DDmLM1+adcrQT0dZR+AlfA Quoting Stephen Warren (2013-06-12 08:36:11) > On 06/12/2013 01:13 AM, Jay Agarwal wrote: > > Registering pciex as peripheral clock instead of fixed clock > > as tegra_perih_reset_assert(deassert) api of this clock api > > gives warning and ultimately does not succeed to assert(deassert) > > > > Signed-off-by: Jay Agarwal <jagarwal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > --- > > Patch is based on remotes/gitorious_thierryreding_linux/tegra/next and should be applied on top of this. > > In this case, it would make more sense to apply this to the clock tree, > since it's a standalone bug-fix. > > Acked-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Pulled into clk-fixes for -rc7. Regards, Mike ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-16 18:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-12 7:13 [PATCH V4 1/4] ARM: tegra30: clocks: Fix pciex clock registration Jay Agarwal
[not found] ` <1371021223-6709-1-git-send-email-jagarwal-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-06-12 15:36 ` Stephen Warren
[not found] ` <51B8956B.8020704-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-06-16 18:51 ` Mike Turquette
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox