]> git.baikalelectronics.ru Git - kernel.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)
committerThierry Reding <treding@nvidia.com>
Mon, 31 May 2021 13:16:25 +0000 (15:16 +0200)
commitc9e5b9c26c2685b439102e8deea3557aee9ae63e
tree23430c35e93adcd488bf7b5d423124f06d06b957
parent2038c792f206d2a4181424e24bd7ea7aed2e4960
clk: tegra: Ensure that PLLU configuration is applied properly

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>
drivers/clk/tegra/clk-pll.c