diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2020-05-05 22:44:20 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2020-05-05 22:49:10 -0700 |
commit | bc693ecc8b68144ef557371ae19de9787e696700 (patch) | |
tree | 3657983eae3535a9cacda06415078c5449a48875 /plat/nvidia/tegra/soc | |
parent | e3e5e6617bc06b95ed9207168724daa9e59360b9 (diff) | |
download | arm-trusted-firmware-bc693ecc8b68144ef557371ae19de9787e696700.tar.gz |
Tegra194: validate C6 power state type
This patch validates that PSTATE_STANDBY is set as the C6 power state type.
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I26a4a61bcb4ee0d1846ab61c007eeba3c180e5aa
Diffstat (limited to 'plat/nvidia/tegra/soc')
-rw-r--r-- | plat/nvidia/tegra/soc/t194/plat_psci_handlers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c b/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c index 8f6e19fc3..e226372ee 100644 --- a/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c +++ b/plat/nvidia/tegra/soc/t194/plat_psci_handlers.c @@ -73,6 +73,11 @@ int32_t tegra_soc_validate_power_state(uint32_t power_state, switch (state_id) { case PSTATE_ID_CORE_IDLE: + if (psci_get_pstate_type(power_state) != PSTATE_TYPE_STANDBY) { + ret = PSCI_E_INVALID_PARAMS; + break; + } + /* Core idle request */ req_state->pwr_domain_state[MPIDR_AFFLVL0] = PLAT_MAX_RET_STATE; req_state->pwr_domain_state[MPIDR_AFFLVL1] = PSCI_LOCAL_STATE_RUN; |