aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mazzucato <nicola.mazzucato@arm.com>2020-10-16 22:26:52 +0100
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-10-19 10:57:10 +0100
commit9543279d9c9c3cf0b8b916c904e9d756d50563a8 (patch)
tree8cf150fd12f9b76b17fb494bdd969fc89bb8f2c8
parentb7117e10d24150762bf419d108dc7f92c73dd97b (diff)
juno/xrp7724: Restore error on out of margin
A previous commit [1] removed the status error when the margin is out of margin. In fact this error is required to be returned so the HAL and its logic to handle the error can take place. Restore the error. [1] 7b3bf3a2fc55d4a8f1a11ea416d791652f89e5da Change-Id: Ieeaaaf23eaea85d8bfc26f0d74281f6c6114aed3 Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
-rw-r--r--product/juno/module/juno_xrp7724/src/mod_juno_xrp7724.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/product/juno/module/juno_xrp7724/src/mod_juno_xrp7724.c b/product/juno/module/juno_xrp7724/src/mod_juno_xrp7724.c
index ae2f3f64..10813d52 100644
--- a/product/juno/module/juno_xrp7724/src/mod_juno_xrp7724.c
+++ b/product/juno/module/juno_xrp7724/src/mod_juno_xrp7724.c
@@ -876,6 +876,8 @@ static int juno_xrp7724_psu_process_request(fwk_id_t id,
((adc_val - PSU_TARGET_MARGIN_MV) >
ctx->juno_xrp7724_dev_psu.psu_set_voltage)) {
FWK_LOG_INFO("[XRP7724] Voltage set out of margin");
+
+ status = FWK_E_DEVICE;
} else {
ctx->juno_xrp7724_dev_psu.current_voltage =
ctx->juno_xrp7724_dev_psu.psu_set_voltage;