]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
clk: tegra: Always program PLL_E when enabled
authorThierry Reding <treding@nvidia.com>
Wed, 3 Jun 2020 11:13:07 +0000 (13:13 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 21 Sep 2020 12:09:09 +0000 (14:09 +0200)
commit5105660ee80862b85f7769626d0f936c18ce1885
tree7b5009b3f79a26a27999f87e24d5831bbad82bc7
parent6402e780e9434246a4c221034e1f8a0fd67f20bd
clk: tegra: Always program PLL_E when enabled

Commit bff1cef5f23a ("clk: tegra: Don't enable already enabled PLLs")
added checks to avoid enabling PLLs that have already been enabled by
the bootloader. However, the PLL_E configuration inherited from the
bootloader isn't necessarily the one that is needed for the kernel.

This can cause SATA to fail like this:

    [    5.310270] phy phy-sata.6: phy poweron failed --> -110
    [    5.315604] tegra-ahci 70027000.sata: failed to power on AHCI controller: -110
    [    5.323022] tegra-ahci: probe of 70027000.sata failed with error -110

Fix this by always programming the PLL_E. This ensures that any mis-
configuration by the bootloader will be overwritten by the kernel.

Fixes: bff1cef5f23a ("clk: tegra: Don't enable already enabled PLLs")
Reported-by: LABBE Corentin <clabbe@baylibre.com>
Tested-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-pll.c