
From: Chiqijun <chiqijun@huawei.com> driver inclusion category: bugfix bugzilla: 4472 ----------------------------------------------------------------------- It is not allowed to send a message to the firmware during the firmware upgrade process. If there is a message during the upgrade process, it will probabilistically cause the message to time out, so sleep 2s wait for the firmware message processing to complete. Signed-off-by: Chiqijun <chiqijun@huawei.com> Reviewed-by: Zengweiliang <zengweiliang.zengweiliang@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/net/ethernet/huawei/hinic/hinic_hwdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hwdev.c b/drivers/net/ethernet/huawei/hinic/hinic_hwdev.c index 2d6a547c4d34..ed2fce3363a8 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hwdev.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_hwdev.c @@ -849,6 +849,10 @@ static int __pf_to_mgmt_pre_handle(struct hinic_hwdev *hwdev, /* Set channel invalid, don't allowed to send other cmd */ if (mod == HINIC_MOD_COMM && cmd == HINIC_MGMT_CMD_ACTIVATE_FW) { hinic_set_mgmt_channel_status(hwdev, true); + + /* Sleep 2s wait other pf's mgmt messages to complete */ + msleep(2000); + /* stop heartbeat enhanced detection temporary, and will * restart in firmware active event when mgmt is resetted */ -- 2.25.1