hwrng: imx-rngc - check the rng type
authorMartin Kaiser <martin@kaiser.cx>
Thu, 5 Mar 2020 20:58:23 +0000 (21:58 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Mar 2020 12:00:15 +0000 (23:00 +1100)
commitb9957fc944586da3d4a175c811afec563636c713
tree79c7aebd2f9384c174429eda69b25165f640b21f
parentf7d79450d192d194a88c37b55c048d3840a5d74b
hwrng: imx-rngc - check the rng type

Read the rng type and hardware revision during probe. Fail the probe
operation if the type is not one of rngc or rngb.
(There's also an rnga type, which needs a different driver.)

Display the type and revision in a debug print if probe was successful.

Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/imx-rngc.c