]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd03332e4b38d0d9049a7e09d2676dd86bf68a98
treeb9e8be132291f739a726f5329c094afce04c5702
parentc945fbca2ba241306d94d8ac3f22df4515dff3ef
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