crypto: hisilicon/qm - fix incorrect parameters usage
authorWeili Qian <qianweili@huawei.com>
Sat, 24 Sep 2022 10:14:42 +0000 (18:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2022 11:05:23 +0000 (19:05 +0800)
commitf57e292897cac13b6ddee078aea21173b234ecb7
treedaf4afaaa34f31161e1020e231bc37ccfd299919
parent7001141d34e550854425afa76e960513cf150a62
crypto: hisilicon/qm - fix incorrect parameters usage

In qm_get_xqc_depth(), parameters low_bits and high_bits save
the values of the corresponding bits. However, the values saved by the
two parameters are opposite. As a result, the values returned to the
callers are incorrect.

Fixes: 129a9f340172 ("crypto: hisilicon/qm - get qp num and depth from hardware registers")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c