net: hns3: add compatible handling for command HCLGE_OPC_PF_RST_DONE
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 7 Nov 2019 01:30:19 +0000 (09:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:46:56 +0000 (21:46 -0800)
commit648db0514a3808eead513d7abfaf650d02a64d5c
tree32d1621a1f2ee16168ba08ccc5a206cec82d8075
parentc78806f31f2f60da4a16b5e9f55a109b8cfdcf2d
net: hns3: add compatible handling for command HCLGE_OPC_PF_RST_DONE

Since old firmware does not support HCLGE_OPC_PF_RST_DONE, it will
return -EOPNOTSUPP to the driver when received this command. So
for this case, it should just print a warning and return success
to the caller.

Fixes: 72e2fb07997c ("net: hns3: clear reset interrupt status in hclge_irq_handle()")
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.c