ARM: tegra30: clocks: Fix pciex clock registration
Subsystems (4)
PATCH v4 1/4 ARM: tegra30: clocks: Fix pciex clock registration
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)
---
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(-)
drivers/clk/tegra/clk-tegra30.c +6 -5
@@ -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 )
Signature · 1 line
1.7.0.4
Quoted 7 lines · Jay Agarwal
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 <[email protected]>---
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.
Quoting Stephen Warren (2013-06-12 08:36:11)
Quoted 5 lines · Jay Agarwal
Quoted 4 lines
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)
Quoted 8 lines
Quoted 3 lines
Signed-off-by Jay Agarwal <[email protected]>---
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 <[email protected]>
Pulled into clk-fixes for -rc7.
Regards,
Mike