Message ID | 20220517180105.1758335-1-anthony.l.nguyen@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 942d2ad5d2e0df758a645ddfadffde2795322728 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/1] igb: skip phy status check where unavailable | expand |
Hello: This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>: On Tue, 17 May 2022 11:01:05 -0700 you wrote: > From: Kevin Mitchell <kevmitch@arista.com> > > igb_read_phy_reg() will silently return, leaving phy_data untouched, if > hw->ops.read_reg isn't set. Depending on the uninitialized value of > phy_data, this led to the phy status check either succeeding immediately > or looping continuously for 2 seconds before emitting a noisy err-level > timeout. This message went out to the console even though there was no > actual problem. > > [...] Here is the summary with links: - [net,1/1] igb: skip phy status check where unavailable https://git.kernel.org/netdev/net/c/942d2ad5d2e0 You are awesome, thank you!
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index 34b33b21e0dc..68be2976f539 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -5505,7 +5505,8 @@ static void igb_watchdog_task(struct work_struct *work) break; } - if (adapter->link_speed != SPEED_1000) + if (adapter->link_speed != SPEED_1000 || + !hw->phy.ops.read_reg) goto no_wait; /* wait for Remote receiver status OK */