[PATCH] firmware: smccc: Pass only the required device probe arguments

Sudeep Holla sudeep.holla at kernel.org
Mon Oct 12 01:55:35 PDT 2026


On Sat, Oct 10, 2026 at 03:32:49PM +0530, Aneesh Kumar K.V (Arm) wrote:
> The device probe passes zeroes for all seven argument registers to
> arm_smccc_1_1_invoke(). On ARM32 Thumb-2, this binds an input to r7 and
> GCC 8.5 reports "r7 cannot be used in asm here".
> 
> The current smccc_devices entries need at most one argument after the
> function ID: TRNG_VERSION has none and RSI_ABI_VERSION takes a requested
> version. Pass zero for that argument and omit the unused arguments,
> avoiding the r7 constraint. Check argument requirements when adding new
> probe functions to smccc_devices.
> 

LGTM and should be enough for now.

Reviewed-by: Sudeep Holla <sudeep.holla at kernel.org>

-- 
Regards,
Sudeep



More information about the linux-arm-kernel mailing list