Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

amd-xgbe: Don't overwrite SFP PHY mod_absent settings

If an SFP module is not present, xgbe_phy_sfp_phy_settings() should
return after applying the default settings. Currently there is no return
statement and the default settings are overwritten.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Lendacky, Thomas and committed by
David S. Miller
2697ea5a b42c6761

+2
+2
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c
··· 716 716 pdata->phy.duplex = DUPLEX_UNKNOWN; 717 717 pdata->phy.autoneg = AUTONEG_ENABLE; 718 718 pdata->phy.advertising = pdata->phy.supported; 719 + 720 + return; 719 721 } 720 722 721 723 pdata->phy.advertising &= ~ADVERTISED_Autoneg;