[PATCH v2 2/3] crypto: sun8i-ce - Add TRNG clock to the D1 variant
Corentin Labbe
clabbe.montjoie at gmail.com
Fri Jan 6 00:18:24 PST 2023
Le Sat, Dec 31, 2022 at 04:01:44PM -0600, Samuel Holland a écrit :
> At least the D1 variant requires a separate clock for the TRNG.
> Without this clock enabled, reading from /dev/hwrng reports:
>
> sun8i-ce 3040000.crypto: DMA timeout for TRNG (tm=96) on flow 3
>
> Experimentation shows that the necessary clock is the SoC's internal
> RC oscillator. This makes sense, as noise from the oscillator can be
> used as a source of entropy.
>
> Signed-off-by: Samuel Holland <samuel at sholland.org>
> ---
>
Acked-by: Corentin Labbe <clabbe.montjoie at gmail.com>
Thanks
More information about the linux-riscv
mailing list