]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(zynqmp): query node status to power up APU
authorRavi Patel <ravi.patel@xilinx.com>
Thu, 15 Apr 2021 12:55:19 +0000 (05:55 -0700)
committerRonak Jain <ronak.jain@xilinx.com>
Thu, 3 Mar 2022 06:10:57 +0000 (22:10 -0800)
commitb35b556718b60b78cb5d96b0c137e2fe82eb0086
treecfdf63549fdd67b10aeadfff3ade819a3d1ee869
parente682d38b56854e1586b25d929dbc83543b4c66e4
fix(zynqmp): query node status to power up APU

If APU is in suspending state and if wakeup request comes then
PMUFW returns error which is not handled at ATF side.

To fix this, get the APU node status before calling wakeup and
return error if found in suspending state.

Here, we can not handle the error code of pm_req_wakeup() from PMUFW
because ATF is already calling pm_client_wakeup() before calling
pm_req_wakeup().

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Change-Id: I18d47384e46e22ae49e804093ad0641b7a6349e2
plat/xilinx/zynqmp/plat_psci.c
plat/xilinx/zynqmp/pm_service/pm_defs.h