[7/9] net/ngbe: fix issues caused by MNG veto bit setting
Checks
Commit Message
In the new firmware, MNG veto bit is set by default for new features. It
causes the PHY configuration not to be reset after LAN reset. So PHY power
will be down after stopping device. The internal PHY then cannot be
initialized successfully at device start. Add setting power on for internal
PHY to fix this issue.
Fixes: abea8974c7a6 ("net/ngbe: support link down/up")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
---
drivers/net/ngbe/base/ngbe_phy_rtl.c | 2 ++
1 file changed, 2 insertions(+)
@@ -120,6 +120,8 @@ s32 ngbe_init_phy_rtl(struct ngbe_hw *hw)
hw->init_phy = true;
msec_delay(1);
+ hw->phy.set_phy_power(hw, true);
+
for (i = 0; i < 15; i++) {
if (!rd32m(hw, NGBE_STAT,
NGBE_STAT_GPHY_IN_RST(hw->bus.lan_id)))