]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd-xgbe: Don't overwrite SFP PHY mod_absent settings
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 28 Feb 2017 21:03:10 +0000 (15:03 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:58 +0000 (12:56 +0100)
commit0ee7666f639aa820ad2ae3cb7f36b5487443e0b0
treea1a25e93b481f38478bd01104dc5dfadb33a4d74
parent9919f222968c0d311c8c2f658eef767529981504
amd-xgbe: Don't overwrite SFP PHY mod_absent settings

[ Upstream commit 2697ea5a859b83ca49511dcfd98daf42584eb3cf ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c