RDMA/nes: Make nesadapter->phy_lock usage consistent
authorChien Tung <chien.tin.tung@intel.com>
Tue, 9 Mar 2010 21:50:40 +0000 (21:50 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 21 Apr 2010 22:46:40 +0000 (15:46 -0700)
commitce6e74f23d8018f50609f694b6177c139486ebe5
tree5d7f07be071eae07a1c047f8f0ba322a44abd8db
parent0eddb519b9127c73d53db4bf3ec1d45b13f844d1
RDMA/nes: Make nesadapter->phy_lock usage consistent

nes_{read,write}_1G_phy_reg() are using phy_lock while
nes_{read,write}_10G_phy_reg() leave that to the caller.

Remove phy_lock from 1G routines and leave the locking to the caller.
Add additional phy_lock calls around 1G read/write.

Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_nic.c
drivers/infiniband/hw/nes/nes_utils.c