ixgbe: Set lan_id before using I2C
authorDon Skidmore <donald.c.skidmore@intel.com>
Wed, 10 Jun 2015 00:48:54 +0000 (17:48 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 10 Jun 2015 00:48:54 +0000 (17:48 -0700)
commit7e49d6165e4a6c5df7f32c16976b33bfd830b92c
treebd4982e6390c4e7873a6f0124eff04f7c8583c22
parenta4e293a5bfaf18a94c3421f3a424939ce3524ccd
ixgbe: Set lan_id before using I2C

We need to call the set_lan_id before accessing I2C and this wasn't
being done so this patch corrects that.  Likewise we do the same for
QSFP just to be consistent.

In the X550 case this is even more important as with out it the mux
is not controlled properly.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c