s390/trng: set quality to 1024
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 29 Sep 2020 08:03:51 +0000 (10:03 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Nov 2020 10:21:00 +0000 (11:21 +0100)
commitd041315ef75cf52df19613f56a2da2c5911c163c
tree439f1c6bcc8c63b312d5f280af96ffe3dd30d0a4
parenta67a88b0b8de16b4cd6ad50bfe0e03605904dc75
s390/trng: set quality to 1024

The s390-trng does provide 100% entropy. The quality value is supported
to be between 1 and 1024 and not 1..1000.  Use 1024 to make this driver
the preferred one. If we ever have a better driver that has the same
quality but is faster we can change this again when merging the new
driver. No need to be conservative.

This makes sure that the hw variant is preferred over things like
virtio-rng, where the hypervisor has a potential to be misconfigured
and thus should have a slightly lower confidence.

Cc: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/char/hw_random/s390-trng.c