[PATCH 1/2] net/ngbe: mask unused internal PHY interrupts

Zaiyu Wang zaiyuwang at trustnetic.com
Wed Nov 25 12:11:04 CET 2026


The internal PHY comes out of reset with every interrupt source enabled
in RTL_INER, and the driver rechecks the link on any PHY interrupt.

Link status change and autonegotiation complete are the only sources
the driver acts on, so enable those two and mask the rest.

Fixes: 3518df5774c7 ("net/ngbe: support device start/stop")
Fixes: 696a82117875 ("net/ngbe: redesign internal PHY init flow")
Cc: stable at dpdk.org

Signed-off-by: Zaiyu Wang <zaiyuwang at trustnetic.com>
---
 drivers/net/ngbe/base/ngbe_phy_rtl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ngbe/base/ngbe_phy_rtl.c b/drivers/net/ngbe/base/ngbe_phy_rtl.c
index 9312bd300b..74f0a37b25 100644
--- a/drivers/net/ngbe/base/ngbe_phy_rtl.c
+++ b/drivers/net/ngbe/base/ngbe_phy_rtl.c
@@ -178,6 +178,8 @@ s32 ngbe_init_phy_rtl(struct ngbe_hw *hw)
 	hw->phy.write_reg(hw, 0xd, 0x0, 0x4007);
 	hw->phy.write_reg(hw, 0xe, 0x0, 0x0000);
 
+	hw->phy.write_reg(hw, RTL_INER, 0xa42, RTL_INER_LSC | RTL_INER_ANC);
+
 	hw->init_phy = false;
 
 	return 0;
-- 
2.55.0.windows.2



More information about the stable mailing list