linux/drivers/soc/tegra
Jon Hunter c5c95dbdc9 soc/tegra: pmc: Fix uninitialised clock rate
For legacy 32-bit Tegra devices, the warning in the
tegra_pmc_enter_suspend_mode() function is being triggered because the
early_pmc->rate variable is never configured and hence, always 0. This
issue started occurring after updating the PMC driver to create the PMC
context dynamically which causes the 'rate' to be set in the new dynamic
context, but missed updating the rate in the early PMC context.

Fix this by initialising the early_pmc->rate variable for 32-bit Tegra
devices when the rate for the PMC context is initialised.

Fixes: 4d61f03426 ("soc/tegra: pmc: Create PMC context dynamically")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
[treding@nvidia.com: move assignment to existing #ifdef block]
Signed-off-by: Thierry Reding <treding@nvidia.com>
History 2026-09-10 14:40:22 +02:00
..
cbb soc/tegra: cbb: Remove redundant dev_err() 2026-07-31 17:33:33 +02:00
fuse soc/tegra: fuse: Add missing newline to APBMISC error message 2026-08-31 15:15:08 +02:00
ari-tegra186.c soc/tegra: Add Tegra186 ARI driver 2021-10-08 21:42:38 +02:00
common.c soc/tegra: common: Add Tegra114 support to devm_tegra_core_dev_init_opp_table 2026-03-28 01:02:38 +01:00
flowctrl.c soc/tegra: flowctrl: Use devm_platform_get_and_ioremap_resource() 2023-04-05 14:59:09 +02:00
Kconfig soc/tegra: Add PM dependency to SOC_TEGRA_PMC Kconfig 2026-07-31 17:56:37 +02:00
Makefile soc: tegra: Move powergate-bpmp driver to the genpd dir 2023-07-14 10:40:56 +02:00
pmc.c soc/tegra: pmc: Fix uninitialised clock rate 2026-09-10 14:40:22 +02:00
regulators-tegra20.c soc/tegra: regulators: Prepare for suspend 2021-12-16 14:03:38 +01:00
regulators-tegra30.c soc/tegra: regulators: Prepare for suspend 2021-12-16 14:03:38 +01:00