aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Vizzarro <Luca.Vizzarro@arm.com>2020-10-08 19:20:29 +0100
committernicola-mazzucato-arm <42373140+nicola-mazzucato-arm@users.noreply.github.com>2020-10-22 14:39:59 +0100
commit10dea43bffdd9fedb359c929d890a7d5dbc79ca0 (patch)
tree67c203e453f613a4a0e7dde691fa57dfedb7eeac
parent13642a54143ee2de26c2d39c2ca814a9025106fd (diff)
mod_scmi_reset: Fix invalid cmd return value
As per section 4.1.4 of the SCMI v2 spec, the correct error code to return whenever an invalid command is requested is SCMI_NOT_FOUND. The original behaviour of the reset domain protocol was to return SCMI_NOT_SUPPORTED. This commit fixes this mistake. Change-Id: Iee9eacf1fd71352be88ed0299d155f33842cd56c Signed-off-by: Luca Vizzarro <Luca.Vizzarro@arm.com>
-rw-r--r--module/scmi_reset_domain/src/mod_scmi_reset_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/scmi_reset_domain/src/mod_scmi_reset_domain.c b/module/scmi_reset_domain/src/mod_scmi_reset_domain.c
index f2949758..05bb98c8 100644
--- a/module/scmi_reset_domain/src/mod_scmi_reset_domain.c
+++ b/module/scmi_reset_domain/src/mod_scmi_reset_domain.c
@@ -552,7 +552,7 @@ static int scmi_reset_message_handler(fwk_id_t protocol_id,
fwk_assert(payload != NULL);
if (message_id >= FWK_ARRAY_SIZE(msg_handler_table)) {
- return_value = SCMI_NOT_SUPPORTED;
+ return_value = SCMI_NOT_FOUND;
goto error;
}