Skip to content

Commit

Permalink
plat-stm32mp1: scmi_server: report invalid regulator state request
Browse files Browse the repository at this point in the history
Changes the SCMI return code from SCMI_GENERIC_ERROR to
SCMI_INVALID_PARAMETERS when the requested state is not one of
the 2 supported SCMI voltage domain states
(SCMI_VOLTAGE_DOMAIN_CONFIG_ARCH_ON or
SCMI_VOLTAGE_DOMAIN_CONFIG_ARCH_OFF).

Acked-by: Jerome Forissier <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms authored and jforissier committed Nov 16, 2023
1 parent 8874767 commit 305e38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/arch/arm/plat-stm32mp1/scmi_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ int32_t plat_scmi_voltd_set_config(unsigned int channel_id,
}
break;
default:
return SCMI_GENERIC_ERROR;
return SCMI_INVALID_PARAMETERS;
}

return SCMI_SUCCESS;
Expand Down

0 comments on commit 305e38d

Please sign in to comment.