]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - fix pointer size for AArch64 boot loader, AArch32 kernel
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 5 Dec 2016 09:06:58 +0000 (11:06 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Dec 2016 11:55:17 +0000 (19:55 +0800)
commit0892ea681733d058cd59c29ae607d014de1a7410
treedab5cd98db3202110e8e6c11ec4ae0922599feff
parentb0143248c31a19633a5821eeeba623f9740274ae
crypto: caam - fix pointer size for AArch64 boot loader, AArch32 kernel

Start with a clean slate before dealing with bit 16 (pointer size)
of Master Configuration Register.
This fixes the case of AArch64 boot loader + AArch32 kernel, when
the boot loader might set MCFGR[PS] and kernel would fail to clear it.

Cc: <stable@vger.kernel.org>
Reported-by: Alison Wang <alison.wang@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-By: Alison Wang <Alison.wang@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c