]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 22 Mar 2017 14:02:34 +0000 (08:02 -0600)
commit269be303e4bd7acb684cfc280040a8fabc0a127e
treee9405abe8eb3a0205035981a19a0a0379c03f4a2
parentba261b726546af7e1a4cca88d28dad343a870555
amd-xgbe: Don't overwrite SFP PHY mod_absent settings

BugLink: http://bugs.launchpad.net/bugs/1675032
[ 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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c