]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix a wrong reset interrupt status mask
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 20 Nov 2019 02:07:15 +0000 (10:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 03:09:53 +0000 (19:09 -0800)
commit00b11d16d21ab0d2b3df733f472f28cde3dd6e2d
tree50e1734e559156acfe117654fcb13947313d0536
parent850d04ac63a83da4bf4745221c4a83f25c81b17b
net: hns3: fix a wrong reset interrupt status mask

According to hardware user manual, bits5~7 in register
HCLGE_MISC_VECTOR_INT_STS means reset interrupts status,
but HCLGE_RESET_INT_M is defined as bits0~2 now. So it
will make hclge_reset_err_handle() read the wrong reset
interrupt status.

This patch fixes this wrong bit mask.

Fixes: 9d6bc0bba266 ("net: hns3: check reset interrupt status when reset fails")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h