]> git.feebdaed.xyz Git - 0xmirror/dpdk.git/commit
net/txgbe: fix mailbox interface calls
authorJiawen Wu <jiawenwu@trustnetic.com>
Wed, 26 Nov 2025 08:56:49 +0000 (16:56 +0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 27 Nov 2025 17:52:51 +0000 (18:52 +0100)
commit82d9cc90be63ebaed13a5175c45d5501684a9fc8
tree229d331ca90504621167f5159b3b135a8fc83846
parent3e48adc13585eae2c2b03dbb9681577995c7e28a
net/txgbe: fix mailbox interface calls

For different devices, the mailbox flow between software and firmware is
different. There are several mailbox commands in the txgbe driver, but only
txgbe_hic_sr_read() was changed to use the new flow.

It leads to other mailbox commands timeout for Amber-Lite devices, which
is required to use the new flow. So this patch fills in the missing part.

For the sake of code tidy, txgbe_hic_sr_read() should change to use the
locked function txgbe_host_interface_command(), and this function could
be change to pointer in struct txgbe_mbx_info for different devices.

Fixes: 6a139ade82e7 ("net/txgbe: add new SW-FW mailbox interface")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/base/txgbe_aml.c
drivers/net/txgbe/base/txgbe_aml40.c
drivers/net/txgbe/base/txgbe_eeprom.c
drivers/net/txgbe/base/txgbe_hw.c
drivers/net/txgbe/base/txgbe_mng.c
drivers/net/txgbe/base/txgbe_mng.h
drivers/net/txgbe/base/txgbe_type.h