]> git.baikalelectronics.ru Git - kernel.git/commit
igb: update the approach taken to acquiring and releasing the phy lock
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 5 Oct 2009 06:32:07 +0000 (06:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2009 21:59:17 +0000 (14:59 -0700)
commit41f2ccabb79937c234ea5f37b56193bdc31d7d88
tree2eee3430313f30a7b35959554ad072c6d66a19c2
parent47281fff4cca6facac7aa32ef668f7e1465cc9ab
igb: update the approach taken to acquiring and releasing the phy lock

The current approach is just using a ?: type mechanism to set the phy
locking bit.  This if fine for now but limits us to only 2.  Switch to a
nested if statement for future compatiblity with more than 2 phys.

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