mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-30 15:49:34 +00:00
Merge "fix(zynqmp): check return status of pm_get_api_version" into integration
This commit is contained in:
commit
4ccbdd86bc
1 changed files with 7 additions and 1 deletions
|
@ -207,10 +207,16 @@ err:
|
||||||
*/
|
*/
|
||||||
int32_t pm_setup(void)
|
int32_t pm_setup(void)
|
||||||
{
|
{
|
||||||
|
enum pm_ret_status err;
|
||||||
|
|
||||||
pm_ipi_init(primary_proc);
|
pm_ipi_init(primary_proc);
|
||||||
|
|
||||||
pm_get_api_version(&pm_ctx.api_version);
|
err = pm_get_api_version(&pm_ctx.api_version);
|
||||||
|
if (err != PM_RET_SUCCESS) {
|
||||||
|
ERROR("BL31: Failed to read Platform Management API version. "
|
||||||
|
"Return: %d\n", err);
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
if (pm_ctx.api_version < PM_VERSION) {
|
if (pm_ctx.api_version < PM_VERSION) {
|
||||||
ERROR("BL31: Platform Management API version error. Expected: "
|
ERROR("BL31: Platform Management API version error. Expected: "
|
||||||
"v%d.%d - Found: v%d.%d\n", PM_VERSION_MAJOR,
|
"v%d.%d - Found: v%d.%d\n", PM_VERSION_MAJOR,
|
||||||
|
|
Loading…
Add table
Reference in a new issue