crypto: caam - fix LS1021A support on ARMv7 multiplatform kernel
authorHoria Geantă <horia.geanta@nxp.com>
Fri, 1 Sep 2017 14:12:59 +0000 (17:12 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 20 Sep 2017 09:42:42 +0000 (17:42 +0800)
commitc056d910f08029662080a01b4ce2110e2c9a27b6
treef55aca2a86234afe0c0cfdafb0df23c758da50a9
parent3e1166b94e661ed51af1fe1fe5f74bd83450b50f
crypto: caam - fix LS1021A support on ARMv7 multiplatform kernel

When built using multi_v7_defconfig, driver does not work on LS1021A:
[...]
caam 1700000.crypto: can't identify CAAM ipg clk: -2
caam: probe of 1700000.crypto failed with error -2
[...]

It turns out we have to detect at runtime whether driver is running
on an i.MX platform or not.

Cc: <stable@vger.kernel.org>
Fixes: 6c3af9559352 ("crypto: caam - add support for LS1021A")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/Kconfig
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/regs.h