提交 c99d3685 编写于 作者: L liweihang 提交者: Xie XiuQi

RDMA/hns: modification for the changed set_default_reset_request interface

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch updates the usage of set_default_reset_request in the RDMA
driver for the above interface change.
Signed-off-by: NShiju Jose <shiju.jose@huawei.com>
Signed-off-by: Nliweihang <liweihang@huawei.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b37858dc
...@@ -5535,6 +5535,7 @@ static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id) ...@@ -5535,6 +5535,7 @@ static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id)
{ {
struct hns_roce_dev *hr_dev = dev_id; struct hns_roce_dev *hr_dev = dev_id;
struct device *dev = hr_dev->dev; struct device *dev = hr_dev->dev;
unsigned long reset_level = 0;
int int_work = 0; int int_work = 0;
__le32 int_st; __le32 int_st;
__le32 int_en; __le32 int_en;
...@@ -5555,9 +5556,10 @@ static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id) ...@@ -5555,9 +5556,10 @@ static irqreturn_t hns_roce_v2_msix_interrupt_abn(int irq, void *dev_id)
le32_to_cpu(int_st)); le32_to_cpu(int_st));
/* Set reset level for the following reset_event() call */ /* Set reset level for the following reset_event() call */
if (ops->set_default_reset_request) if (ops->set_default_reset_request) {
ops->set_default_reset_request(ae_dev, set_bit(HNAE3_FUNC_RESET, &reset_level);
HNAE3_FUNC_RESET); ops->set_default_reset_request(ae_dev, &reset_level);
}
if (ops->reset_event) if (ops->reset_event)
ops->reset_event(pdev, NULL); ops->reset_event(pdev, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册