]> git.dujemihanovic.xyz Git - u-boot.git/commit
rng: fix ARMv8.5 RNDR driver
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 4 Nov 2023 07:00:07 +0000 (09:00 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 9 Jan 2024 06:36:18 +0000 (07:36 +0100)
commitbadef4cd4a9154776238cb1fad6d22bc93340303
treeee6dec799677449f7b4d2c3f4a02d00d3186ba6e
parentc5e461fbf7cc72f0c1c8a79226b6a5170e56cb4d
rng: fix ARMv8.5 RNDR driver

In different parts of our code we assume that the first RNG device is the
one to be used. Therefore it is preferable to detect the availability of
the RNDR register already in the bind method.

For signaling the non-existence of a device the driver model requires using
ENOENT (and not ENODEV).

Fixes: 31565bb0aa2d ("driver: rng: Add DM_RNG interface for ARMv8.5 RNDR registers")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
drivers/rng/arm_rndr.c