Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-06 Thread Simon Glass
Hi Heinrich, On Sun, 5 Nov 2023 at 14:54, Heinrich Schuchardt wrote: > > On 11/5/23 18:25, Simon Glass wrote: > > Hi Heinrich, > > > > On Sun, 5 Nov 2023 at 03:47, Heinrich Schuchardt > > wrote: > >> > >> On 11/4/23 21:42, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Sat, 4 Nov 2023 at

Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-05 Thread Heinrich Schuchardt
On 11/5/23 18:25, Simon Glass wrote: Hi Heinrich, On Sun, 5 Nov 2023 at 03:47, Heinrich Schuchardt wrote: On 11/4/23 21:42, Simon Glass wrote: Hi Heinrich, On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt wrote: The existence of devices should be checked in the bind method and not in

Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-05 Thread Simon Glass
Hi Heinrich, On Sun, 5 Nov 2023 at 03:47, Heinrich Schuchardt wrote: > > On 11/4/23 21:42, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt > > wrote: > >> > >> The existence of devices should be checked in the bind method and not in > >> the probe

Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-04 Thread Heinrich Schuchardt
On 11/4/23 21:42, Simon Glass wrote: Hi Heinrich, On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt wrote: The existence of devices should be checked in the bind method and not in the probe method. Adjust the RISC-V Zkr RNG driver accordingly. Use ENOENT (and not ENODEV) to signal that the

Re: [PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-04 Thread Simon Glass
Hi Heinrich, On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt wrote: > > The existence of devices should be checked in the bind method and not in > the probe method. Adjust the RISC-V Zkr RNG driver accordingly. > > Use ENOENT (and not ENODEV) to signal that the device is not available. > >

[PATCH 1/1] rng: detect RISC-V Zkr RNG device in bind method

2023-11-04 Thread Heinrich Schuchardt
The existence of devices should be checked in the bind method and not in the probe method. Adjust the RISC-V Zkr RNG driver accordingly. Use ENOENT (and not ENODEV) to signal that the device is not available. Fixes: ceec977ba1a9 ("rng: Provide a RNG based on the RISC-V Zkr ISA extension")