Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224387
b: refs/heads/master
c: e3de4b7
h: refs/heads/master
i:
  224385: 744f1d4
  224383: 179c830
v: v3
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Nov 17, 2010
1 parent e8c33c8 commit 0d4e8ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2274543f15133165b855b9a4a1503b2c1268c6cf
refs/heads/master: e3de4b7bdfd2c06884c95cfb4ad4d64be046595e
6 changes: 3 additions & 3 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3661,7 +3661,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter)
ixgbe_configure_msi_and_legacy(adapter);

/* enable the optics */
if (hw->phy.multispeed_fiber)
if (hw->phy.multispeed_fiber && hw->mac.ops.enable_tx_laser)
hw->mac.ops.enable_tx_laser(hw);

clear_bit(__IXGBE_DOWN, &adapter->state);
Expand Down Expand Up @@ -3973,7 +3973,7 @@ void ixgbe_down(struct ixgbe_adapter *adapter)
}

/* power down the optics */
if (hw->phy.multispeed_fiber)
if (hw->phy.multispeed_fiber && hw->mac.ops.disable_tx_laser)
hw->mac.ops.disable_tx_laser(hw);

/* clear n-tuple filters that are cached */
Expand Down Expand Up @@ -7074,7 +7074,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
}

/* power down the optics */
if (hw->phy.multispeed_fiber)
if (hw->phy.multispeed_fiber && hw->mac.ops.disable_tx_laser)
hw->mac.ops.disable_tx_laser(hw);

init_timer(&adapter->watchdog_timer);
Expand Down

0 comments on commit 0d4e8ca

Please sign in to comment.