The ECC operation type is 'HPRE_HW_V3_ECC_ALG_TYPE' instead of 'HPRE_HW_V2_ALG_TYPE'. fix it.
Signed-off-by: Weili Qian qianweili@huawei.com --- drv/hisi_hpre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drv/hisi_hpre.c b/drv/hisi_hpre.c index 7bf55a1..1f5d4bc 100644 --- a/drv/hisi_hpre.c +++ b/drv/hisi_hpre.c @@ -529,7 +529,7 @@ static int hpre_ecc_init(void *conf, void *priv) return -WD_EINVAL; }
- qm_priv.op_type = HPRE_HW_V2_ALG_TYPE; + qm_priv.op_type = HPRE_HW_V3_ECC_ALG_TYPE; ret = hpre_init_qm_priv(config, hpre_ctx, &qm_priv); if (ret) return ret;