]> 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)
commit2512c8a590a088a4ffb5a7086c4e28c7cc637c24
tree5c053d78723cfd619355c3bfe842b88f8da0cd9d
parent44f924c1f3449b309f0926641af72fb4bb59c103
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