]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc/tegra: pmc: Use PMC context embedded in powergates
authorThierry Reding <treding@nvidia.com>
Mon, 3 Feb 2025 13:51:18 +0000 (14:51 +0100)
committerThierry Reding <treding@nvidia.com>
Sun, 18 Jan 2026 07:48:29 +0000 (08:48 +0100)
commitbb946b0e118dc95160d2313474b2ca4de771f82b
tree0da919f52517b5947154c6fb87e639254625df2b
parentb2a3e8200056480219d4bc44c3403cacf0125495
soc/tegra: pmc: Use PMC context embedded in powergates

The powergates exposed by the PMC have a pointer to the PMC context
embedded. Use that embedded reference instead of relying on a global
variable.

For the core power domain a new structure needs to be introduced to wrap
the generic PM domain and store the PMC context.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c