]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add waiting time before cmdq memory is released
authorYufeng Mo <moyufeng@huawei.com>
Thu, 26 Aug 2021 11:21:56 +0000 (19:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Aug 2021 14:24:16 +0000 (07:24 -0700)
commita96d9330b02a3d051ae689bc2c5e7d3a2ba25594
treefc9dc484762e5c1731e171f1467bd41501e4d317
parent1a6d281946c330cee2855f6d0cd796616e54601f
net: hns3: add waiting time before cmdq memory is released

After the cmdq registers are cleared, the firmware may take time to
clear out possible left over commands in the cmdq. Driver must release
cmdq memory only after firmware has completed processing of left over
commands.

Fixes: 232d0d55fca6 ("net: hns3: uninitialize command queue while unloading PF driver")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h