summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cisco
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@kpanic.de>2013-04-04 06:57:08 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-08 12:00:16 -0400
commit07783f39e1433574cff20ca774684c3921162b59 (patch)
tree19afc8610210e9524302b0bc20b2d77aa0a39c95 /drivers/net/ethernet/cisco
parent56aa091d60a63fee83d2c894edb69b7c159966c7 (diff)
downloadblackbird-op-linux-07783f39e1433574cff20ca774684c3921162b59.tar.gz
blackbird-op-linux-07783f39e1433574cff20ca774684c3921162b59.zip
enic: be less verbose about non-critical firmware errors
If a feature is not supported by firmware no need to print an error message. This surpresses the following harmless message on boot up and ethtool query. enic: Error 1 devcmd 36 Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco')
-rw-r--r--drivers/net/ethernet/cisco/enic/vnic_dev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cisco/enic/vnic_dev.c b/drivers/net/ethernet/cisco/enic/vnic_dev.c
index 605b22283be1..97455c573db5 100644
--- a/drivers/net/ethernet/cisco/enic/vnic_dev.c
+++ b/drivers/net/ethernet/cisco/enic/vnic_dev.c
@@ -308,6 +308,9 @@ static int _vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
if (status & STAT_ERROR) {
err = (int)readq(&devcmd->args[0]);
+ if (err == ERR_EINVAL &&
+ cmd == CMD_CAPABILITY)
+ return err;
if (err != ERR_ECMDUNKNOWN ||
cmd != CMD_CAPABILITY)
pr_err("Error %d devcmd %d\n",
OpenPOWER on IntegriCloud