[PATCH v14 05/44] arm64: RMI: Add wrappers for RMI calls

Aneesh Kumar K.V aneesh.kumar at kernel.org
Mon May 18 22:35:22 PDT 2026


Steven Price <steven.price at arm.com> writes:

> The wrappers make the call sites easier to read and deal with the
> boiler plate of handling the error codes from the RMM.
>
> Signed-off-by: Steven Price <steven.price at arm.com>
> +#define rmi_smccc(...) do {						\
> +	arm_smccc_1_1_invoke(__VA_ARGS__);				\
> +} while (RMI_RETURN_STATUS(res.a0) == RMI_BUSY ||			\
> +	 RMI_RETURN_STATUS(res.a0) == RMI_BLOCKED)
> +

I guess this is not used. Also, that would require the call site to have a struct arm_smccc_res res.


-aneesh



More information about the linux-arm-kernel mailing list