crypto: caam - fix MC firmware detection
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 23 May 2018 11:32:40 +0000 (14:32 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 May 2018 16:13:46 +0000 (00:13 +0800)
commit06d44c918a689e41215f763285061b3a99c56b6c
tree27f83f88903cc7d42f350a2239cd9bc46c25290a
parentc2e415fe75bbc83c1cd9299b12b81aa2f5ad7c6e
crypto: caam - fix MC firmware detection

Management Complex (MC) f/w detection is based on CTPR_MS[DPAA2] bit.

This is incorrect since:
-the bit is set for all CAAM blocks integrated in SoCs with a certain
Layerscape Chassis
-some SoCs with LS Chassis don't have an MC block (thus no MC f/w)

To fix this, MC f/w detection will be based on the presence of
"fsl,qoriq-mc" compatible string in the device tree.

Fixes: 297b9cebd2fc0 ("crypto: caam/jr - add support for DPAA2 parts")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/intern.h