Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plat-stm32mp1: scmi_server: fix case when regulator state is unchanged
Fixes the return value when an SCMI regulator is already in the expected state. Prior this change the implementation returned SCMI_GENERIC_ERROR instead of SCMI_SUCCESS. Changes also the SCMI return code in case of failure from SCMI_GENERIC_ERROR to SCMI_INVALID_PARAMETERS when the requested state is not one of the 2 supported SCMi voltage domain states supported (SCMI_VOLTAGE_DOMAIN_CONFIG_ARCH_ON or SCMI_VOLTAGE_DOMAIN_CONFIG_ARCH_OFF). Fixes: 23e2006 ("plat-stm32mp1: scmi_server: use registered regulators") Signed-off-by: Etienne Carriere <[email protected]>
- Loading branch information