OSDN Git Service

ixgbe: Add I2C bus mux support
authorMark Rustad <mark.d.rustad@intel.com>
Sat, 8 Aug 2015 23:18:53 +0000 (16:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 24 Sep 2015 05:45:47 +0000 (22:45 -0700)
commit449e21a92411ba35bfa68b4464aa7dbd1f705d28
tree5c053d78723cfd619355c3bfe842b88f8da0cd9d
parent58e7cd24d474c87763387f606e403012f562760b
ixgbe: Add I2C bus mux support

Take control of an I2C mux that selects which SFP is attached to
the I2C bus. The control of the mux is captured in the taking and
releasing of the related semaphore. Because only port 1 can control
the mux, port 1 always leaves the mux set to select port 0.

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_type.h
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c