clk: tegra: Capitalization fixes
Subsystems (3)
PATCH 1/2 clk: tegra: Capitalization fixes
From: Thierry Reding <[email protected]>
HW, XUSB and PLL are abbreviations and should be all-uppercase.
--- drivers/clk/tegra/clk-pll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/tegra/clk-pll.c +2 -2
@@ -1663,7 +1663,7 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)pll_writel (val,PLLE_SS_CTRL , pll);udelay (1 ); -/* Enable hw control of xusb brick pll */ +/* Enable HW control of XUSB brick PLL */ val =pll_readl_misc (pll); val &= ~PLLE_MISC_IDDQ_SW_CTRL ;pll_writel_misc (val, pll);
@@ -1686,7 +1686,7 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw) val |=XUSBIO_PLL_CFG0_SEQ_ENABLE ;pll_writel (val,XUSBIO_PLL_CFG0 , pll); -/* Enable hw control of SATA pll */ +/* Enable HW control of SATA PLL */ val =pll_readl (SATA_PLL_CFG0 , pll); val &= ~SATA_PLL_CFG0_PADPLL_RESET_SWCTL ; val |=SATA_PLL_CFG0_PADPLL_USE_LOCKDET ;
Signature · 1 line
2.24.1
PATCH 2/2 clk: tegra: Always program PLL_E when enabled
From: Thierry Reding <[email protected]>
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 -110Fix this by always programming the PLL_E. This ensures that any mis- configuration by the bootloader will be overwritten by the kernel.
--- drivers/clk/tegra/clk-pll.c | 3 --- 1 file changed, 3 deletions(-)
drivers/clk/tegra/clk-pll.c +0 -3
@@ -1601,9 +1601,6 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)unsigned long flags =0 ;unsigned long input_rate; -if (clk_pll_is_enabled (hw)) -return 0 ; - input_rate =clk_hw_get_rate (clk_hw_get_parent (hw));if (_get_table_rate (hw, &sel, pll->params->fixed_rate, input_rate))
Signature · 1 line
2.24.1
Re: [PATCH 2/2] clk: tegra: Always program PLL_E when enabled
Quoted 40 lines · Thierry Reding
From: Thierry Reding <[email protected]>
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, thePLL_Econfiguration 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 -110Fix 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 <[email protected]>Signed-off-by Thierry Reding <[email protected]>--- drivers/clk/tegra/clk-pll.c | 3 --- 1 file changed, 3 deletions(-)drivers/clk/tegra/clk-pll.c +0
-3@@ -1601,9 +1601,6 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)unsigned long flags =0 ;unsigned long input_rate; -if (clk_pll_is_enabled (hw)) -return 0 ; - input_rate =clk_hw_get_rate (clk_hw_get_parent (hw));if (_get_table_rate (hw, &sel, pll->params->fixed_rate, input_rate))Signature · 1 line
2.24.1
Thanks
Re: [PATCH 2/2] clk: tegra: Always program PLL_E when enabled
In reply to Thierry Reding03.06.2020 14:19, Thierry Reding пишет:
Quoted 29 lines
From: Thierry Reding <[email protected]>
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, thePLL_Econfiguration 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 -110Fix 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")Signed-off-by Thierry Reding <[email protected]>--- drivers/clk/tegra/clk-pll.c | 3 --- 1 file changed, 3 deletions(-)drivers/clk/tegra/clk-pll.c +0
-0
drivers/clk/tegra/clk-pll.c static int clk_plle_tegra114_enable(struct clk_hw *hw) · line 1606
Quoted 9 lines
drivers/clk/tegra/clk-pll.c +0
-3@@ -1601,9 +1601,6 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)unsigned long flags =0 ;unsigned long input_rate; -if (clk_pll_is_enabled (hw)) -return 0 ; - input_rate =clk_hw_get_rate (clk_hw_get_parent (hw));if (_get_table_rate (hw, &sel, pll->params->fixed_rate, input_rate))
Re: [PATCH 2/2] clk: tegra: Always program PLL_E when enabled
In reply to Thierry RedingQuoting Thierry Reding (2020-06-03 04:19:23)
Quoted 13 lines
From: Thierry Reding <[email protected]>
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, thePLL_Econfiguration 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
Quoted 7 lines
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")Signed-off-by Thierry Reding <[email protected]>---
Quoting Thierry Reding (2020-06-03 04:19:22)
Quoted 6 lines
From: Thierry Reding <[email protected]>
HW, XUSB and PLL are abbreviations and should be all-uppercase.
Signed-off-by Thierry Reding <[email protected]>---