aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/hw_random/cctrng.c
AgeCommit message (Collapse)AuthorFilesLines
2020-09-04hwrng: cctrn - Simplify with dev_err_probe()Krzysztof Kozlowski1-5/+4
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Hadar Gat <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2020-04-30hwrng: cctrng - Make some symbols staticZou Wei1-2/+2
Fix the following sparse warnings: drivers/char/hw_random/cctrng.c:316:6: warning: symbol 'cc_trng_compwork_handler' was not declared. Should it be static? drivers/char/hw_random/cctrng.c:451:6: warning: symbol 'cc_trng_startwork_handler' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Acked-by: Hadar Gat <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2020-04-30hwrng: cctrng - Remove unnecessary FIPS ifdefHerbert Xu1-3/+1
This patch removes the unnecessary FIPS ifdef in cctrng. Signed-off-by: Herbert Xu <[email protected]> Acked-by: Hadar Gat <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2020-04-20hwrng: cctrng - add missing include to linux/fips.hHadar Gat1-0/+1
This fixes build failure when CONFIG_CRYPTO_FIPS is defined. Fixes: a583ed310bb6 ("hwrng: cctrng - introduce Arm CryptoCell driver") Signed-off-by: Hadar Gat <[email protected]> Reported-by: Randy Dunlap <[email protected]> Reported-by: kbuild test robot <[email protected]> Acked-by: Randy Dunlap <[email protected]> # build-tested Signed-off-by: Herbert Xu <[email protected]>
2020-04-16hwrng: cctrng - introduce Arm CryptoCell driverHadar Gat1-0/+736
Introduce low level Arm CryptoCell TRNG HW support. Signed-off-by: Hadar Gat <[email protected]> Signed-off-by: Herbert Xu <[email protected]>