s390/trng: Introduce s390 TRNG device driver.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Fri, 24 Feb 2017 08:10:05 +0000 (09:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Apr 2017 11:41:36 +0000 (13:41 +0200)
commitbbcb478e3fefa5d9acff6a5311073fae0809a9c3
treecd945e711fdf1d798106bce24c093844a9b49cec
parent4c637cd8de43416c1b1eef6113e7aa06abacf18d
s390/trng: Introduce s390 TRNG device driver.

This patch introduces a new device driver s390-trng for the
s390 platform which exploits the new PRNO TRNG cpacf
subfunction. The true-random-number-generator is accessible
from userspace, by default visible as /dev/trng. The driver
also registers at the kernel build-in hwrng API to feed the
hwrng with fresh entropy data. This generic device driver
for hardware random data is visible from userspace as
/dev/hwrng.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Makefile
drivers/char/hw_random/s390-trng.c [new file with mode: 0644]