]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Prevent sending command during global or core reset
authorHuazhong Tan <tanhuazhong@huawei.com>
Fri, 6 Jul 2018 10:28:04 +0000 (11:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 02:13:07 +0000 (11:13 +0900)
commitc674dfba7edbfea90fa100d6756ec487967db1b8
tree6ec1cbc6879d27e5db34d216698f26eea6ac3aef
parent4349ae9a424985c5e3158c3462f796a6017c47d8
net: hns3: Prevent sending command during global or core reset

According to hardware's description, driver should not send command to
IMP while hardware doing global or core reset.

Signed-off-by: Huazhong Tan <tanhuazhong@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_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h