diff options
author | Meng Yu <yumeng18@huawei.com> | 2020-07-10 09:40:41 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-16 13:49:10 +0200 |
commit | d7ba2c09e1aa03e01e1e3be55c8a5f4610500164 (patch) | |
tree | bc9750fdcb47b1c399b39ccba4afaad71f3476fd /drivers/crypto/hisilicon/hpre/hpre_main.c | |
parent | crypto: drivers - set the flag CRYPTO_ALG_ALLOCATES_MEMORY (diff) | |
download | linux-d7ba2c09e1aa03e01e1e3be55c8a5f4610500164.tar.xz linux-d7ba2c09e1aa03e01e1e3be55c8a5f4610500164.zip |
crypto: hisilicon/hpre - Init the value of current_q of debugfs
Initialize current queue number as HPRE_PF_DEF_Q_NUM, or it is zero
and we can't set its value by "current_q_write".
Signed-off-by: Meng Yu <yumeng18@huawei.com>
Reviewed-by: Zaibo Xu <xuzaibo@huawei.com>
Reviewed-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon/hpre/hpre_main.c')
-rw-r--r-- | drivers/crypto/hisilicon/hpre/hpre_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/hpre/hpre_main.c b/drivers/crypto/hisilicon/hpre/hpre_main.c index a3ee127a70e3..31313479a8ec 100644 --- a/drivers/crypto/hisilicon/hpre/hpre_main.c +++ b/drivers/crypto/hisilicon/hpre/hpre_main.c @@ -732,6 +732,7 @@ static int hpre_qm_init(struct hisi_qm *qm, struct pci_dev *pdev) if (qm->fun_type == QM_HW_PF) { qm->qp_base = HPRE_PF_DEF_Q_BASE; qm->qp_num = pf_q_num; + qm->debug.curr_qm_qp_num = pf_q_num; qm->qm_list = &hpre_devices; } |