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)
commit8d40854fc180b7d39bf08cc76fbb9a60bcd65f14
tree6ec1cbc6879d27e5db34d216698f26eea6ac3aef
parenta754e5c4ed0627c3d5695ebbbc7ca53b38c6103a
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