diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 043acab5cb07..0a3e8a35a0b3 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2598,12 +2598,19 @@ void ixgbe_reset(struct ixgbe_adapter *adapter) | |||
2598 | int err; | 2598 | int err; |
2599 | 2599 | ||
2600 | err = hw->mac.ops.init_hw(hw); | 2600 | err = hw->mac.ops.init_hw(hw); |
2601 | if (err && (err != IXGBE_ERR_SFP_NOT_PRESENT)) | 2601 | switch (err) { |
2602 | dev_err(&adapter->pdev->dev, "Hardware Error\n"); | 2602 | case 0: |
2603 | case IXGBE_ERR_SFP_NOT_PRESENT: | ||
2604 | break; | ||
2605 | case IXGBE_ERR_MASTER_REQUESTS_PENDING: | ||
2606 | dev_err(&adapter->pdev->dev, "master disable timed out\n"); | ||
2607 | break; | ||
2608 | default: | ||
2609 | dev_err(&adapter->pdev->dev, "Hardware Error: %d\n", err); | ||
2610 | } | ||
2603 | 2611 | ||
2604 | /* reprogram the RAR[0] in case user changed it. */ | 2612 | /* reprogram the RAR[0] in case user changed it. */ |
2605 | hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV); | 2613 | hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV); |
2606 | |||
2607 | } | 2614 | } |
2608 | 2615 | ||
2609 | /** | 2616 | /** |