]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: tegra: Ensure that PLLU configuration is applied properly
authorDmitry Osipenko <digetx@gmail.com>
Sun, 16 May 2021 16:30:35 +0000 (19:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 08:00:50 +0000 (10:00 +0200)
commitaada9ae28982dcbb15540f8451673ae702776cd1
treed6dba49456566bd10a65fd5d6651e0bd7a646223
parentc6de09603d570d5dfa70b251be0456c2eed7143f
clk: tegra: Ensure that PLLU configuration is applied properly

[ Upstream commit a7196048cd5168096c2c4f44a3939d7a6dcd06b9 ]

The PLLU (USB) consists of the PLL configuration itself and configuration
of the PLLU outputs. The PLLU programming is inconsistent on T30 vs T114,
where T114 immediately bails out if PLLU is enabled and T30 re-enables
a potentially already enabled PLL (left after bootloader) and then fully
reprograms it, which could be unsafe to do. The correct way should be to
skip enabling of the PLL if it's already enabled and then apply
configuration to the outputs. This patch doesn't fix any known problems,
it's a minor improvement.

Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/tegra/clk-pll.c