From: Ruchika Gupta Date: Fri, 26 Apr 2013 10:14:54 +0000 (+0530) Subject: crypto: caam - FIX RNG init for RNG greater than equal to 4 X-Git-Tag: v3.11-rc1~82^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986dfbcf8b493928188f0e634068993bf2067ad7;p=pandora-kernel.git crypto: caam - FIX RNG init for RNG greater than equal to 4 For SEC including a RNG block version >= 4, special initialization must occur before any descriptor that uses RNG block can be submitted. This initialization is required not only for SEC with version greater than 5.0, but for SEC with RNG version >=4. There may be a case where RNG has already been instantiated by u-boot or boot ROM code.In such SoCs, if RNG is initialized again SEC would returns "Instantiation error". Hence, the initialization status of RNG4 should be also checked before doing RNG init. Signed-off-by: Ruchika Gupta Signed-off-by: Alex Porosanu Signed-off-by: Andy Fleming Reviewed-by: Vakul Garg Signed-off-by: Herbert Xu --- Reading git-diff-tree failed