Skip to contentSkip to conversation

enic: be less verbose about non-critical firmware errors

PATCH Applied Stefan Assmann 2 participants 2 messages Apr 4, 2013 – Apr 8, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/net/ethernet/cisco/enic/vnic_dev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/cisco/enic/vnic_dev.c +3 -0
index 605b222..97455c5 100644
@@ -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",
Signature · 1 line
1.8.1.4
maintainer Applied
#1 lore raw

From: Stefan Assmann <[email protected]>
Date: Thu, 4 Apr 2013 18:57:08 +0200

Quoted 5 lines

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

Applied.