WSL2-Linux-Kernel/drivers/clk/tegra
Jon Hunter 1116d5a7af clk: tegra: Don't reset PLL-CX if it is already enabled
Commit 8dce89a1c2 ("clk: tegra: Don't warn for PLL defaults
unnecessarily") changed the tegra210_pllcx_set_defaults() function
causing the PLL to always be reset regardless of whether it is in-use.
This function was changed so that resetting of the PLL will only be
skipped if the PLL is enabled AND 'pllcx->params->defaults_set' is not
true. However, the 'pllcx->params->defaults_set' is always true and
hence, the PLL is now always reset. This causes the boot to fail on the
Tegra210 Smaug where the PLL is already enabled and in-use. Fix this by
only resetting the PLL if not in-use and only printing the warning that
the defaults are not set after we have checked the default settings.

Fixes: 8dce89a1c2 ("clk: tegra: Don't warn for PLL defaults unnecessarily")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-By: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2017-04-04 16:06:05 +02:00
..
Kconfig clk: tegra: Add BPMP clock driver 2017-02-03 12:36:36 -08:00
Makefile clk: tegra: Add BPMP clock driver 2017-02-03 12:36:36 -08:00
clk-audio-sync.c clk: tegra: Remove CLK_IS_ROOT 2016-03-02 17:47:19 -08:00
clk-bpmp.c clk: tegra: Add BPMP clock driver 2017-02-03 12:36:36 -08:00
clk-dfll.c PM / OPP: Update OPP users to put reference 2017-01-30 09:22:21 +01:00
clk-dfll.h clk: tegra: dfll: Properly clean up on failure and removal 2016-04-28 12:41:54 +02:00
clk-divider.c tegra/clk-divider: fix wrong do_div() usage 2015-11-16 12:37:55 -05:00
clk-emc.c clk: tegra: Add missing of_node_put() 2016-02-02 15:49:28 +01:00
clk-id.h clk: tegra: Add missing Tegra210 clocks 2017-04-04 16:03:00 +02:00
clk-periph-fixed.c clk: tegra: Add fixed factor peripheral clock type 2016-04-28 12:41:47 +02:00
clk-periph-gate.c clk: tegra: Fix disable unused for clocks sharing enable bit 2017-03-20 14:13:52 +01:00
clk-periph.c clk: tegra: Fix build warnings on Tegra20/Tegra30 2017-03-20 17:14:14 +01:00
clk-pll-out.c clk: tegra: Properly include clk.h 2015-07-20 11:11:17 -07:00
clk-pll.c clk: tegra: Rework pll_u 2017-03-20 14:18:30 +01:00
clk-super.c clk: tegra: Add super clock mux/divider 2017-03-20 14:07:33 +01:00
clk-tegra-audio.c clk: tegra: Define Tegra210 DMIC sync clocks 2017-03-20 14:06:33 +01:00
clk-tegra-fixed.c clk: tegra: Remove trailing blank line 2016-04-28 12:41:45 +02:00
clk-tegra-periph.c clk: tegra: Add missing Tegra210 clocks 2017-04-04 16:03:00 +02:00
clk-tegra-pmc.c clk: tegra: Propagate clk_out_x rate to parent 2017-04-04 16:00:28 +02:00
clk-tegra-super-gen4.c clk: tegra: super: Fix sparse warnings for functions not declared as static 2016-02-02 15:49:34 +01:00
clk-tegra20.c treewide: Fix typos in printk 2016-04-28 10:52:28 +02:00
clk-tegra30.c clk: tegra: Add CEC clock 2017-03-20 14:06:23 +01:00
clk-tegra114.c clk: tegra: Add CEC clock 2017-03-20 14:06:23 +01:00
clk-tegra124-dfll-fcpu.c clk: tegra: dfll: Use builtin_platform_driver to simplify the code 2016-11-10 14:08:46 -08:00
clk-tegra124.c clk: tegra: Add CEC clock 2017-03-20 14:06:23 +01:00
clk-tegra210.c clk: tegra: Don't reset PLL-CX if it is already enabled 2017-04-04 16:06:05 +02:00
clk.c clk: tegra: Implement reset control reset 2017-03-20 14:15:31 +01:00
clk.h clk: tegra: Fix build warnings on Tegra20/Tegra30 2017-03-20 17:14:14 +01:00
cvb.c clk: tegra: dfll: improve function-level documentation 2016-11-01 17:38:50 -07:00
cvb.h clk: tegra: dfll: Properly clean up on failure and removal 2016-04-28 12:41:54 +02:00