]> git.dujemihanovic.xyz Git - u-boot.git/commit
driver: rng: Do not check ARM_SMCCC_TRNG_VERSION
authorLeo Yan <leo.yan@arm.com>
Tue, 9 Jul 2024 16:23:09 +0000 (17:23 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2024 13:40:30 +0000 (07:40 -0600)
commit51ebe8cd6a53102ca80881fa9eb2ae653bf9cb08
treeb8f487a5d72982d3868dc45e3f6a387d02c529a7
parentf6503fad0c97c6daa33ae7a290520ac4418cf386
driver: rng: Do not check ARM_SMCCC_TRNG_VERSION

As described in the document SMC Calling Convention (ARM DEN 0028 1.5 F),
section 7 "Arm Architecture Calls", the SMC call SMCCC_ARCH_FEATURES is
not expected to support the function ID ARM_SMCCC_TRNG_VERSION. Trusted
Firmware-A follows up the specification in its implementation.

This commit removes the invocation to avoid the failure - which is a
wrong calling in U-boot. The later code invokes ARM_SMCCC_TRNG_VERSION
for retrieving the TRNG version, except it can read back the version
number, it also can be used to detect whether the TRNG is supported or
not.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Weizhao Ouyang <o451686892@gmail.com>
drivers/rng/smccc_trng.c