From 9543279d9c9c3cf0b8b916c904e9d756d50563a8 Mon Sep 17 00:00:00 2001 From: Nicola Mazzucato Date: Fri, 16 Oct 2020 22:26:52 +0100 Subject: 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 --- product/juno/module/juno_xrp7724/src/mod_juno_xrp7724.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3