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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Dec 2016 16:50:35 +0000 (08:50 -0800)
commit86bea59218a05031deeac415544eb48c1556456b
tree45d4d2aefec7a629b5e389ca50a319079fa3a44c
parent666531ca650e67f111af70789a48b0d169772b78
crypto: caam - fix pointer size for AArch64 boot loader, AArch32 kernel

commit 39eaf759466f4e3fbeaa39075512f4f345dffdc8 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/caam/ctrl.c