[PATCH 1/2] firmware: smccc: Stub out get_conduit()
Heiko Stuebner
heiko at sntech.de
Tue May 20 11:36:38 PDT 2025
Am Dienstag, 20. Mai 2025, 19:10:16 Mitteleuropäische Sommerzeit schrieb Robin Murphy:
> Various callers use arm_smccc_1_1_get_conduit() to guard their
> arm_smccc_smc() calls - since the latter is already stubbed out to
> support optional usage in !HAVE_ARM_SMCCC configs, do the equivalent
> for the former as well to make life easier.
>
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
Reviewed-by: Heiko Stuebner <heiko at sntech.de>
Way nicer than to require arm32 rockchip platforms to
enable smcc stuff, even if not in use.
> ---
> include/linux/arm-smccc.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h
> index a3863da1510e..97dc4d47c664 100644
> --- a/include/linux/arm-smccc.h
> +++ b/include/linux/arm-smccc.h
> @@ -315,7 +315,14 @@ enum arm_smccc_conduit {
> *
> * When SMCCCv1.1 is not present, returns SMCCC_CONDUIT_NONE.
> */
> +#ifdef CONFIG_HAVE_ARM_SMCCC_DISCOVERY
> enum arm_smccc_conduit arm_smccc_1_1_get_conduit(void);
> +#else
> +static inline enum arm_smccc_conduit arm_smccc_1_1_get_conduit(void)
> +{
> + return SMCCC_CONDUIT_NONE;
> +}
> +#endif
>
> /**
> * arm_smccc_get_version()
>
More information about the Linux-rockchip
mailing list