hwrng: exynos - Add timeout for waiting on init done
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 19 Oct 2015 04:37:40 +0000 (13:37 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:13:59 +0000 (22:13 +0800)
commitd7fd6075a205f19cd0c570c8b5badb8c69321d88
treee97a6a45a944b77072125790a921cff7b1c6d3c8
parent2b748a2f642a95c8125bfd8981d430a4e4d73e15
hwrng: exynos - Add timeout for waiting on init done

Driver may hang waiting indefinitely for PRNG to finish its
initialization stage. Instead of stalling return -ETIMEDOUT error.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/exynos-rng.c