提交 cb81d099 编写于 作者: Z Zhou Wang 提交者: Xie XiuQi

arm64: crypto/hisilicon/hpre: Notify uacce when hpre controller reset

driver inclusion
category: bugfix
bugzilla: 13683
CVE: NA

-------------------------------------------------

crypto/hisilicon/hpre: Notify uacce when hpre controller reset

Feature or Bugfix:Feature
Signed-off-by: NZhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Nxuzaibo <xuzaibo@huawei.com>
Reviewed-by: Nfanghao <fanghao11@huawei.com>
Signed-off-by: NMingqiang Ling <lingmingqiang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 d9539232
......@@ -1005,6 +1005,11 @@ static int hpre_controller_reset_prepare(struct hpre *hpre)
return ret;
}
#ifdef CONFIG_CRYPTO_QM_UACCE
if (qm->use_uacce)
uacce_reset_prepare(&qm->uacce);
#endif
return 0;
}
......@@ -1098,6 +1103,11 @@ static int hpre_controller_reset_done(struct hpre *hpre)
/* Clear VF MSE bit */
hpre_set_mse(hpre, 1);
#ifdef CONFIG_CRYPTO_QM_UACCE
if (qm->use_uacce)
uacce_reset_done(&qm->uacce);
#endif
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册