OSDN Git Service

hwrng: n2 - limit error spewage when self-test fails
authorShannon Nelson <shannon.nelson@oracle.com>
Thu, 12 Jan 2017 18:52:46 +0000 (10:52 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Jan 2017 10:47:18 +0000 (18:47 +0800)
commitdb602a7f940a71870c17e39bcbe4e4d7a4a8273e
treebd588f51968d4fbb80591cdc87adc94b20d6b2ba
parentde0f96d7724f4ce3b48af10a0ea29150f6ddd5ba
hwrng: n2 - limit error spewage when self-test fails

If the self-test fails, it probably won't actually suddenly
start working.  Currently, this causes an endless spew of
error messages on the console and in the logs, so this patch
adds a limiter to the test.

Reported-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/n2-drv.c