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

Catalin Marinas catalin.marinas at arm.com
Mon Oct 12 09:43:33 PDT 2026


On Sat, 10 Oct 2026 15:32:49 +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.
> 
> [...]

Applied to arm64 (for-next/smccc-bus), thanks!

[1/1] firmware: smccc: Pass only the required device probe arguments
      https://git.kernel.org/arm64/c/c6e78a4080a3



More information about the linux-arm-kernel mailing list