soc/tegra: pmc: Ensure powergate is available when powering on
authorJon Hunter <jonathanh@nvidia.com>
Tue, 28 Jun 2016 10:38:23 +0000 (11:38 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 30 Jun 2016 09:48:39 +0000 (11:48 +0200)
commit403db2d21c8f8576d38211e5ec17d149c49e528b
tree8ced5602c41e68baf4c82513cdd66f6e75a84798
parent05cfb988a4d08f84abd2f474d8dd771e7528d975
soc/tegra: pmc: Ensure powergate is available when powering on

The function tegra_power_sequence_power_up() is a public function used
to power on a partition. When this function is called, we do not check
to see if the partition being powered up is valid/available. Fix this
by checking to see that the partition is valid/available.

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