diff options
author | Marcin Wojtas <mw@semihalf.com> | 2017-11-16 18:19:02 +0100 |
---|---|---|
committer | Konstantin Porotchkin <kostap@marvell.com> | 2018-09-03 14:48:36 +0300 |
commit | 5830a17bc7cb99416eb37cdb38bc1f29ee88ea43 (patch) | |
tree | e5f802af9f215ce57a777c894da0d01d98e55e64 | |
parent | 3f24be345c811a304615bc1b37f645716e707aa5 (diff) |
marvell: pm: do not panic by default in cpu_standby
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-on: http://vgitil04.il.marvell.com:8080/58302
Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Reviewed-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
-rw-r--r-- | plat/marvell/a8k/common/plat_pm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plat/marvell/a8k/common/plat_pm.c b/plat/marvell/a8k/common/plat_pm.c index f57d18a6..8a5610ab 100644 --- a/plat/marvell/a8k/common/plat_pm.c +++ b/plat/marvell/a8k/common/plat_pm.c @@ -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(); + } } /***************************************************************************** |