]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit46747d5e43b20e026213cf517837fcec1fc40023
treebd588f51968d4fbb80591cdc87adc94b20d6b2ba
parent3f67105b799b3281e23cfe53490b3a8b92f16f78
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