]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf52e7e503a93e66f84b692b60af322293475b766
tree27f83f88903cc7d42f350a2239cd9bc46c25290a
parent28761578656eac320a8aa821e73923d70b61cc01
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: a1ff5f38b7f98 ("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