linux-stable/drivers/crypto/allwinner/sun8i-ce
Samuel Holland f81c1d4a6d crypto: sun8i-ce - Add TRNG clock to the D1 variant
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@sholland.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-01-13 16:39:04 +08:00
..
Makefile
sun8i-ce-cipher.c Revert "crypto: allwinner - Fix dma_map_sg error check" 2022-09-02 18:19:27 +08:00
sun8i-ce-core.c crypto: sun8i-ce - Add TRNG clock to the D1 variant 2023-01-13 16:39:04 +08:00
sun8i-ce-hash.c Revert "crypto: allwinner - Fix dma_map_sg error check" 2022-09-02 18:19:27 +08:00
sun8i-ce-prng.c crypto: sun8i-ce - using pm_runtime_resume_and_get instead of pm_runtime_get_sync 2022-04-29 13:44:57 +08:00
sun8i-ce-trng.c hwrng: core - treat default_quality as a maximum and default to 1024 2022-11-18 16:59:34 +08:00
sun8i-ce.h crypto: sun8i-ce - Add TRNG clock to the D1 variant 2023-01-13 16:39:04 +08:00