crypto: hisilicon/qm - fix the type value of aeq
authorWeili Qian <qianweili@huawei.com>
Thu, 28 Sep 2023 09:21:03 +0000 (17:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Oct 2023 10:16:30 +0000 (18:16 +0800)
commitff3ddca9ca153d8a0ba0ed9325b15bdca92df769
tree901c3830ca23438bdbb35d6d149381481d11b372
parent5831fc1fd4a578232fea708b82de0c666ed17153
crypto: hisilicon/qm - fix the type value of aeq

The type of aeq has only 4bits in dw0 17 to 20bits, but 15bits(17 to
31bits) are read in function qm_aeq_thread(). The remaining 11bits(21
to 31bits) are reserved for aeq, but may not be 0. To avoid getting
incorrect value of type, other bits are cleared.

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