Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1274163

[PATCH] clk: tegra: Fix bypassing of PLLs

From Jon Hunter <jonathanh@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH] clk: tegra: Fix bypassing of PLLs
Date 2015-11-20 16:20 +0100
Message-ID <qwVDH-uA-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The _clk_disable_pll() function will attempt to place a PLL into bypass
if the TEGRA_PLL_BYPASS is specified for the PLL and then disable the PLL
by clearing the enable bit. To place the PLL into bypass, the bypass bit
needs to be set and not cleared. Fix this by setting the bypass bit and
not clearing it.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 drivers/clk/tegra/clk-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c
index d6d4ecb88e94..e5aa9c87df4c 100644
--- a/drivers/clk/tegra/clk-pll.c
+++ b/drivers/clk/tegra/clk-pll.c
@@ -312,7 +312,7 @@ static void _clk_pll_disable(struct clk_hw *hw)
 
 	val = pll_readl_base(pll);
 	if (pll->params->flags & TEGRA_PLL_BYPASS)
-		val &= ~PLL_BASE_BYPASS;
+		val |= PLL_BASE_BYPASS;
 	val &= ~PLL_BASE_ENABLE;
 	pll_writel_base(val, pll);
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-20 16:20 +0100
  Re: [PATCH] clk: tegra: Fix bypassing of PLLs Rhyland Klein <rklein@nvidia.com> - 2015-11-20 17:50 +0100
  Re: [PATCH] clk: tegra: Fix bypassing of PLLs Stephen Boyd <sboyd@codeaurora.org> - 2015-11-20 18:20 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-23 13:40 +0100
  Re: [PATCH] clk: tegra: Fix bypassing of PLLs Tyler Baker <tyler.baker@linaro.org> - 2015-11-24 00:20 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-24 11:30 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Thierry Reding <thierry.reding@gmail.com> - 2015-11-24 16:20 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-24 16:30 +0100
    Re: [PATCH] clk: tegra: Fix bypassing of PLLs Thierry Reding <thierry.reding@gmail.com> - 2015-11-25 16:20 +0100
      Re: [PATCH] clk: tegra: Fix bypassing of PLLs Tyler Baker <tyler.baker@linaro.org> - 2015-11-25 17:00 +0100
        Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-25 18:50 +0100
          Re: [PATCH] clk: tegra: Fix bypassing of PLLs Jon Hunter <jonathanh@nvidia.com> - 2015-11-26 11:00 +0100

csiph-web