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)
commitbf6f7a928d313ddecb0a16ea60fa6b45ac1414a7
treee26e506f81bb02deab334b600930dd86b337fabc
parent008c3422d48b217792789bdea822dbc2efe2165c
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