]> git.baikalelectronics.ru Git - kernel.git/commit
igb: add locking to reads of the i2c interface
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 5 Oct 2009 06:32:27 +0000 (06:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2009 21:59:18 +0000 (14:59 -0700)
commit2532f28fea598f31c4b768ab313bdcc0514dcfec
treee26e506f81bb02deab334b600930dd86b337fabc
parent41f2ccabb79937c234ea5f37b56193bdc31d7d88
igb: add locking to reads of the i2c interface

The current implementation of sgmii support isn't correctly locking the
interfaces for reads/writes.  This change pulls the read/write
functionality out of 82575.c and moves it to phy.c.  In addition it
replaces the implementation in 82575.c with one that uses locking around
the relocated i2c interface calls.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/e1000_82575.c
drivers/net/igb/e1000_phy.c
drivers/net/igb/e1000_phy.h