Skip to content

Commit

Permalink
crypto: hisilicon/hpre - Init the value of current_q of debugfs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Zaibo Xu <[email protected]>
Reviewed-by: Hui Tang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
yumeng0117 authored and herbertx committed Jul 16, 2020
1 parent b8aa7dc commit d7ba2c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/crypto/hisilicon/hpre/hpre_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d7ba2c0

Please sign in to comment.