Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170430
b: refs/heads/master
c: 008c342
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Duyck authored and David S. Miller committed Oct 6, 2009
1 parent 5a0fbb8 commit c938dce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70d92f86dc162fc24e13cd79fd3481ae39b66f72
refs/heads/master: 008c3422d48b217792789bdea822dbc2efe2165c
11 changes: 7 additions & 4 deletions trunk/drivers/net/igb/e1000_82575.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,10 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw)
**/
static s32 igb_acquire_phy_82575(struct e1000_hw *hw)
{
u16 mask;
u16 mask = E1000_SWFW_PHY0_SM;

mask = hw->bus.func ? E1000_SWFW_PHY1_SM : E1000_SWFW_PHY0_SM;
if (hw->bus.func == E1000_FUNC_1)
mask = E1000_SWFW_PHY1_SM;

return igb_acquire_swfw_sync_82575(hw, mask);
}
Expand All @@ -256,9 +257,11 @@ static s32 igb_acquire_phy_82575(struct e1000_hw *hw)
**/
static void igb_release_phy_82575(struct e1000_hw *hw)
{
u16 mask;
u16 mask = E1000_SWFW_PHY0_SM;

if (hw->bus.func == E1000_FUNC_1)
mask = E1000_SWFW_PHY1_SM;

mask = hw->bus.func ? E1000_SWFW_PHY1_SM : E1000_SWFW_PHY0_SM;
igb_release_swfw_sync_82575(hw, mask);
}

Expand Down

0 comments on commit c938dce

Please sign in to comment.