OSDN Git Service

ixgbe: Fix 1G and 10G link stability for X550EM_x SFP+
authorMark Rustad <mark.d.rustad@intel.com>
Sat, 8 Aug 2015 23:18:33 +0000 (16:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Sep 2015 05:32:06 +0000 (22:32 -0700)
commite23f33367882450c66f7de8805b98ce7665a7ba9
tree6e478621e6680a5e2a05718a964a13e489e19bef
parent6d373a1bbb99bdfb9ce820aec9ae5f2e02c8891f
ixgbe: Fix 1G and 10G link stability for X550EM_x SFP+

Configures the CS4227 correctly for both 1G and 10G operation,
by moving the code to ixgbe_setup_mac_link_sfp_x550em(). It
needs to be in this function because we need both the module
type and the speed, and this is the only function in the init
flow that knows the speed. In contrast,
ixgbe_setup_sfp_modules_X550em() does not know the speed, so we
can't do anything useful here. This is a fundamental difference
from the previous flow, and is due to the way the CS4227 is
implemented.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c