crypto: nx-842 - Mask XERS0 bit in return value
authorHaren Myneni <haren@linux.vnet.ibm.com>
Tue, 30 Aug 2016 04:34:57 +0000 (00:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:27:49 +0000 (08:27 +0200)
commit4259821921698f26e4a2c67c72f00db4e48833b0
treedd846f5b54b1ac34c1af589a7f044a5038046c44
parentf88503578d823dfe503c9c6b80baf3864915f6a5
crypto: nx-842 - Mask XERS0 bit in return value

[ Upstream commit 6333ed8f26cf77311088d2e2b7cf16d8480bcbb2 ]

NX842 coprocessor sets 3rd bit in CR register with XER[S0] which is
nothing to do with NX request. Since this bit can be set with other
valuable return status, mast this bit.

One of other bits (INITIATED, BUSY or REJECTED) will be returned for
any given NX request.

Signed-off-by: Haren Myneni <haren@us.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/icswx.h
drivers/crypto/nx/nx-842-powernv.c