]> 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)
commitc4e1f6843c8c7dadd29185af3a6b856a9de05e4a
treefc74c22879536cfcdb1efce8f856a77e919cd577
parent499e80e9cfcdaff0ab5d0ddc99e825c41e8473f4
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: f62e8ef80016 ("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