tpm: Move Linux RNG connection to hwrng
authorJason Gunthorpe <jgg@ziepe.ca>
Fri, 17 Nov 2017 13:24:03 +0000 (15:24 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 8 Jan 2018 10:58:36 +0000 (12:58 +0200)
commit6e592a065d51d26f9d62b8b7501a5114076af8b4
tree7297d133dcf53bf910d7e3f16e8586b1426382cf
parentaad887f6641145fec2a801da2ce4ed36cf99c6a5
tpm: Move Linux RNG connection to hwrng

The tpm-rng.c approach is completely inconsistent with how the kernel
handles hotplug. Instead manage a hwrng device for each TPM. This will
cause the kernel to read entropy from the TPM when it is plugged in, and
allow access to the TPM rng via /dev/hwrng.

Signed-off-by: Jason Gunthorpe <jgg@ziepe.ca>
Tested-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Makefile
drivers/char/hw_random/tpm-rng.c [deleted file]
drivers/char/tpm/Kconfig
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm.h