[PATCH 2/6] net/txgbe: add flush operation for Amber-Lite NICs

Zaiyu Wang zaiyuwang at trustnetic.com
Thu Oct 23 14:13:51 CEST 2025


Add flush operation for AML NICs to ensure configuration takes effect.
The flush forces hardware to apply new settings right after driver
updates. Missing flush may cause potential negative impacts as
configurations could remain pending.

Signed-off-by: Zaiyu Wang <zaiyuwang at trustnetic.com>
---
 drivers/net/txgbe/base/txgbe_regs.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/txgbe/base/txgbe_regs.h b/drivers/net/txgbe/base/txgbe_regs.h
index f2e4994863..505e42a666 100644
--- a/drivers/net/txgbe/base/txgbe_regs.h
+++ b/drivers/net/txgbe/base/txgbe_regs.h
@@ -1997,9 +1997,12 @@ static inline void txgbe_flush(struct txgbe_hw *hw)
 {
 	switch (hw->mac.type) {
 	case txgbe_mac_sp:
+	case txgbe_mac_aml:
+	case txgbe_mac_aml40:
 		rd32(hw, TXGBE_PWR);
 		break;
 	case txgbe_mac_sp_vf:
+	case txgbe_mac_aml_vf:
 		rd32(hw, TXGBE_VFSTATUS);
 		break;
 	default:
-- 
2.21.0.windows.1



More information about the dev mailing list