summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-02-12 16:09:43 +0100
committerThierry Reding <treding@nvidia.com>2018-03-08 17:02:43 +0100
commit507c655a06c8553a67122c371608b024b997b0e0 (patch)
treeefdf1fed3d9797b13e9248fb58f1824135785ac3 /drivers/soc
parenta263394a096e3578eb8dd77039b961c84a7392e7 (diff)
downloadlinux-0-day-507c655a06c8553a67122c371608b024b997b0e0.tar.gz
linux-0-day-507c655a06c8553a67122c371608b024b997b0e0.tar.xz
soc/tegra: pmc: Pass PMC to tegra_powergate_power_up()
tegra_powergate_sequence_power_up() makes up a struct tegra_powergate from scratch in order to reuse the same code as used by the generic PM domain implementation. However, subsequent patches will need to access the struct tegra_pmc * embedded in the powergate structure, so we need to make sure we always pass it in. Tested-by: Hector Martin <marcan@marcan.st> Tested-by: Andre Heider <a.heider@gmail.com> Tested-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/tegra/pmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c
index 010fbc928cd39..0efdc4ec019f3 100644
--- a/drivers/soc/tegra/pmc.c
+++ b/drivers/soc/tegra/pmc.c
@@ -599,6 +599,7 @@ int tegra_powergate_sequence_power_up(unsigned int id, struct clk *clk,
pg.num_clks = 1;
pg.resets = &rst;
pg.num_resets = 1;
+ pg.pmc = pmc;
err = tegra_powergate_power_up(&pg, false);
if (err)