hwrng: omap - Set default quality
authorRouven Czerwinski <r.czerwinski@pengutronix.de>
Mon, 11 Mar 2019 10:58:57 +0000 (11:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:17 +0000 (06:45 -0700)
commit6f83951a273564564a9baf9bf7ca4fbf8e21c446
treeef1ddc23f3669d8d2df3ca1d150dac8d8e82ff38
parent657aac988d8adf77336653ba0fe2f4a2196c8590
hwrng: omap - Set default quality

[ Upstream commit 62f95ae805fa9e1e84d47d3219adddd97b2654b7 ]

Newer combinations of the glibc, kernel and openssh can result in long initial
startup times on OMAP devices:

[    6.671425] systemd-rc-once[102]: Creating ED25519 key; this may take some time ...
[  142.652491] systemd-rc-once[102]: Creating ED25519 key; done.

due to the blocking getrandom(2) system call:

[  142.610335] random: crng init done

Set the quality level for the omap hwrng driver allowing the kernel to use the
hwrng as an entropy source at boot.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/hw_random/omap-rng.c