]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit821cd0a70444ddb9949e1597d53a5179c0159c1d
tree5c053d78723cfd619355c3bfe842b88f8da0cd9d
parent32fbb69df4dfa093e40dd21195d9c95d5615f102
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