]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8f6a0a10ac9a9f0e42bf1f088361babf4c0072b
tree32d1621a1f2ee16168ba08ccc5a206cec82d8075
parent300db15e66705c4e6eb33e5f8f70671454217fe7
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: 70fbd6b4a837 ("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