crypto: hisilicon/qm - check mailbox operation result
authorWeili Qian <qianweili@huawei.com>
Sat, 27 Aug 2022 10:26:57 +0000 (18:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Sep 2022 10:38:06 +0000 (18:38 +0800)
commit95b66bc4e789c5698b973e92235c2e901c7546e0
tree19f6c09fbc1c15a73b845eeb7878a0daf7db1b50
parent31b39755e32568b43c80814c5e13d7b1ab796d73
crypto: hisilicon/qm - check mailbox operation result

After the mailbox operation is complete, the result may be unsuccessful.
It needs to check the status bits of the mailbox register,
if it fails, -EIO is returned.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c