net: libwx: Fix FW mailbox reply timeout
authorJiawen Wu <jiawenwu@trustnetic.com>
Tue, 13 May 2025 02:10:08 +0000 (10:10 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:26:55 +0000 (19:26 -0700)
commit42efa358f033492097b214309eda464387d15318
treecc1e1ddcd216b2bf86adb618031764eca9b3b4ad
parent141a8dec88ba257429965f163dd16e005f1a9718
net: libwx: Fix FW mailbox reply timeout

For the new SW-FW interaction, the timeout waiting for the firmware to
return is too short. So that some mailbox commands cannot be completed.
Use the 'timeout' parameter instead of fixed timeout value for flexible
configuration.

Fixes: 2e5af6b2ae85 ("net: txgbe: Add basic support for new AML devices")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/5D5BDE3EA501BDB8+20250513021009.145708-3-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/libwx/wx_hw.c