Unverified Commit d7c17a69 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6655 [OLK-5.10] mucse rnpm driver fw mailbox maybe failed to communicate with...

!6655 [OLK-5.10] mucse rnpm driver fw mailbox maybe failed to communicate with PF for mucse N10/N400 chips

Merge Pull Request from: @guhuiguang 
 
rnpm driver for MUCSE N10/N400 chips maybe occured netxt
mailbox communicate failed when port up/down frequently.

Iusse:
https://gitee.com/open_euler/dashboard?issue_id=I9JZ3A

Test:
Passed

reason:
     when port up/down frequently, pf send mailbox command to firmware , but the firmware may be too late to respond, causing the firmware to fail to send the next maibox command.

changed file:
drivers/net/ethernet/mucse/rnpm/rnpm_mbx_fw.c
 
 
Link:https://gitee.com/openeuler/kernel/pulls/6655

 

Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parents 0f692e19 4afce8f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1030,7 +1030,7 @@ int rnpm_mbx_ifup_down(struct rnpm_hw *hw, int up)

	err = hw->mbx.ops.write(
		hw, (u32 *)&req, (req.datalen + MBX_REQ_HDR_LEN) / 4, MBX_FW);

	mdelay(1);
	mutex_unlock(hw->mbx.lock);

	// force firmware report link-status