Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233447
b: refs/heads/master
c: 4c7e604
h: refs/heads/master
i:
  233445: 37811db
  233443: 5671f79
  233439: 40b527b
v: v3
  • Loading branch information
Andy Gospodarek authored and Jeff Kirsher committed Feb 17, 2011
1 parent 92ea513 commit 302a8ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 713b3c9e4c1a6da6b45da6474ed554ed0a48de69
refs/heads/master: 4c7e604babd15db9dca3b07de167a0f93fe23bf4
6 changes: 4 additions & 2 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3728,7 +3728,8 @@ static void ixgbe_sfp_link_config(struct ixgbe_adapter *adapter)
* We need to try and force an autonegotiation
* session, then bring up link.
*/
hw->mac.ops.setup_sfp(hw);
if (hw->mac.ops.setup_sfp)
hw->mac.ops.setup_sfp(hw);
if (!(adapter->flags & IXGBE_FLAG_IN_SFP_LINK_TASK))
schedule_work(&adapter->multispeed_fiber_task);
} else {
Expand Down Expand Up @@ -5968,7 +5969,8 @@ static void ixgbe_sfp_config_module_task(struct work_struct *work)
unregister_netdev(adapter->netdev);
return;
}
hw->mac.ops.setup_sfp(hw);
if (hw->mac.ops.setup_sfp)
hw->mac.ops.setup_sfp(hw);

if (!(adapter->flags & IXGBE_FLAG_IN_SFP_LINK_TASK))
/* This will also work for DA Twinax connections */
Expand Down

0 comments on commit 302a8ea

Please sign in to comment.