firmware: zynqmp: Report error when xilinx_pm_request called from EL3
authorMichal Simek <michal.simek@xilinx.com>
Thu, 10 Oct 2019 09:09:15 +0000 (11:09 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 24 Oct 2019 11:37:01 +0000 (13:37 +0200)
commit9bed8a63f762d91bd4392f93ea90a702e9653c70
tree3937ca8b086325aacc060772b74d7bcbd1126a6d
parent403619515e81bde2d0f1a76ca472fbf8b88572e8
firmware: zynqmp: Report error when xilinx_pm_request called from EL3

Function should report error when called in EL3 context. Also report it as
error instead 0 (success).

Reported-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
drivers/firmware/firmware-zynqmp.c