]> 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)
commit28978362870f2ac74ba92d93a4e9ba1e4d0378ed
tree32d1621a1f2ee16168ba08ccc5a206cec82d8075
parentc241eea7c428e51b7dbece7a5d5083a5fa007520
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: 6fd93f978b6a ("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