diff options
author | Don Skidmore <donald.c.skidmore@intel.com> | 2009-06-30 07:43:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-30 22:46:51 -0400 |
commit | 88d2b81f4ee8f9ea3798dbe6105beb5609844317 (patch) | |
tree | 4f713e44cb793245dc1bb9a6c2d35fa76b7c356e /drivers/net/ixgbe | |
parent | d9d62f3f2c6fa609883714f6fd6cd710a83d307f (diff) |
ixgbe: Fix SFP log messages
We had a wide range of log messages for the same sort of SFP
failure. This patch makes them all more similar and less
confusing along with converting them to dev_err.
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index e756e220db32..30d8c0e41a9d 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2701,7 +2701,10 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
2701 | */ | 2701 | */ |
2702 | err = hw->phy.ops.identify(hw); | 2702 | err = hw->phy.ops.identify(hw); |
2703 | if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) { | 2703 | if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) { |
2704 | DPRINTK(PROBE, ERR, "PHY not supported on this NIC %d\n", err); | 2704 | dev_err(&adapter->pdev->dev, "failed to initialize because " |
2705 | "an unsupported SFP+ module type was detected.\n" | ||
2706 | "Reload the driver after installing a supported " | ||
2707 | "module.\n"); | ||
2705 | ixgbe_down(adapter); | 2708 | ixgbe_down(adapter); |
2706 | return err; | 2709 | return err; |
2707 | } | 2710 | } |
@@ -3720,10 +3723,11 @@ static void ixgbe_sfp_task(struct work_struct *work) | |||
3720 | goto reschedule; | 3723 | goto reschedule; |
3721 | ret = hw->phy.ops.reset(hw); | 3724 | ret = hw->phy.ops.reset(hw); |
3722 | if (ret == IXGBE_ERR_SFP_NOT_SUPPORTED) { | 3725 | if (ret == IXGBE_ERR_SFP_NOT_SUPPORTED) { |
3723 | DPRINTK(PROBE, ERR, "failed to initialize because an " | 3726 | dev_err(&adapter->pdev->dev, "failed to initialize " |
3724 | "unsupported SFP+ module type was detected.\n" | 3727 | "because an unsupported SFP+ module type " |
3725 | "Reload the driver after installing a " | 3728 | "was detected.\n" |
3726 | "supported module.\n"); | 3729 | "Reload the driver after installing a " |
3730 | "supported module.\n"); | ||
3727 | unregister_netdev(adapter->netdev); | 3731 | unregister_netdev(adapter->netdev); |
3728 | } else { | 3732 | } else { |
3729 | DPRINTK(PROBE, INFO, "detected SFP+: %d\n", | 3733 | DPRINTK(PROBE, INFO, "detected SFP+: %d\n", |
@@ -4526,7 +4530,10 @@ static void ixgbe_sfp_config_module_task(struct work_struct *work) | |||
4526 | adapter->flags |= IXGBE_FLAG_IN_SFP_MOD_TASK; | 4530 | adapter->flags |= IXGBE_FLAG_IN_SFP_MOD_TASK; |
4527 | err = hw->phy.ops.identify_sfp(hw); | 4531 | err = hw->phy.ops.identify_sfp(hw); |
4528 | if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) { | 4532 | if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) { |
4529 | DPRINTK(PROBE, ERR, "PHY not supported on this NIC %d\n", err); | 4533 | dev_err(&adapter->pdev->dev, "failed to initialize because " |
4534 | "an unsupported SFP+ module type was detected.\n" | ||
4535 | "Reload the driver after installing a supported " | ||
4536 | "module.\n"); | ||
4530 | ixgbe_down(adapter); | 4537 | ixgbe_down(adapter); |
4531 | return; | 4538 | return; |
4532 | } | 4539 | } |
@@ -5513,8 +5520,10 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
5513 | round_jiffies(jiffies + (2 * HZ))); | 5520 | round_jiffies(jiffies + (2 * HZ))); |
5514 | err = 0; | 5521 | err = 0; |
5515 | } else if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) { | 5522 | } else if (err == IXGBE_ERR_SFP_NOT_SUPPORTED) { |
5516 | dev_err(&adapter->pdev->dev, "failed to load because an " | 5523 | dev_err(&adapter->pdev->dev, "failed to initialize because " |
5517 | "unsupported SFP+ module type was detected.\n"); | 5524 | "an unsupported SFP+ module type was detected.\n" |
5525 | "Reload the driver after installing a supported " | ||
5526 | "module.\n"); | ||
5518 | goto err_sw_init; | 5527 | goto err_sw_init; |
5519 | } else if (err) { | 5528 | } else if (err) { |
5520 | dev_err(&adapter->pdev->dev, "HW Init failed: %d\n", err); | 5529 | dev_err(&adapter->pdev->dev, "HW Init failed: %d\n", err); |