Re: [PATCH 1/1] rng: fix ARMv8.5 RNDR driver

2023-11-04 Thread Heinrich Schuchardt
On 11/4/23 19:13, Andre Przywara wrote: On Sat, 4 Nov 2023 09:00:07 +0200 Heinrich Schuchardt wrote: Hi Heinrich, many thanks for finding and fixing this! 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 avail

Re: [PATCH 1/1] rng: fix ARMv8.5 RNDR driver

2023-11-04 Thread Andre Przywara
On Sat, 4 Nov 2023 09:00:07 +0200 Heinrich Schuchardt wrote: Hi Heinrich, many thanks for finding and fixing this! > 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

[PATCH 1/1] rng: fix ARMv8.5 RNDR driver

2023-11-04 Thread Heinrich Schuchardt
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). Fix