marvell: pm: do not panic by default in cpu_standby
authorMarcin Wojtas <mw@semihalf.com>
Thu, 16 Nov 2017 17:19:02 +0000 (18:19 +0100)
committerKonstantin Porotchkin <kostap@marvell.com>
Sun, 2 Sep 2018 11:10:47 +0000 (14:10 +0300)
Current default behavior of cpu_standby callback
is problematic during the SBSA test, which is
unable to run due to EL3 panic. Make it dependent on
the PM firmware running.

Change-Id: I7a53de8c880bd23b157dd65ce14bb48b5a5c76c8
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
plat/marvell/a8k/common/plat_pm.c

index ec4b55b3999dc8e5b6d1bb8b6d5024af68d2356d..0c74b2fe55d5b7d509e3f4c7196d3328515909f3 100644 (file)
@@ -379,8 +379,10 @@ static int a8k_validate_power_state(unsigned int power_state,
  */
 static void a8k_cpu_standby(plat_local_state_t cpu_state)
 {
-       ERROR("%s: needs to be implemented\n", __func__);
-       panic();
+       if (!is_pm_fw_running()) {
+               ERROR("%s: needs to be implemented\n", __func__);
+               panic();
+       }
 }
 
 /*****************************************************************************