]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/qm - fix judgement of queue is full
authorHui Tang <tanghui20@huawei.com>
Sat, 15 Aug 2020 09:56:11 +0000 (17:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:47:51 +0000 (14:47 +1000)
commit1faa1ce0f1d9395de02a6c5445001088eee8b3ef
treedd5cc95a53bfc4211b61a8b3bf007e6673c35d8e
parent90f3105e64eb0bfdc63951ab50a08da94c31f9f5
crypto: hisilicon/qm - fix judgement of queue is full

The queue depth is 1024, so the condition for judging the queue full
should be 1023, otherwise the hardware cannot judge whether the queue
is empty or full.

Fixes: fda237467f7b("crypto: hisilicon - add queue management driver...")
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Yang Shen <shenyang39@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c