bnx2: Refine remote PHY locking.
authorMichael Chan <mchan@broadcom.com>
Fri, 2 May 2008 23:56:16 +0000 (16:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 23:56:16 +0000 (16:56 -0700)
commit74ecc62d6e595ca64bbef2471787bf53b94e5d3c
treeb9e8be132291f739a726f5329c094afce04c5702
parentae4f8fca4030a4e783fa4ccb0c9d8d8a8cf60a32
bnx2: Refine remote PHY locking.

bnx2_set_remote_link() should be called under bp->phy_lock to protect
against concurrent polling and interrupt calls.  This change is needed
by the next patch which will add one initial poll of the remote PHY
link status.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c