]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for hclge_reset running repeatly problem
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 1 Jun 2018 16:52:06 +0000 (17:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 18:23:56 +0000 (14:23 -0400)
commit61a0966ab0bd1b6853cdd3b72c93d40548f2759f
treefc74c22879536cfcdb1efce8f856a77e919cd577
parent12199d730dd4970a1a04a72dc2e66f7d518a5ea1
net: hns3: Fix for hclge_reset running repeatly problem

When hardware sends the HCLGE_VECTOR0_EVENT_RST event through
hclge_misc_irq_handle, currently driver enables misc_vector in
the interrupt handle, and hardware generates the same interrupt
for the same reset event again and again until the reset is
complete, which causes hclge_reset running repeatly problem.

This patch fixes by enabling the misc_vector after reset is
complete.

Fixes: 8bb4da319613 ("net: hns3: Add reset process in hclge_main")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c