Commit b2133d8d authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

ionic: add decode for IONIC_RC_ENOSUPP

Add decoding for a new firmware error code.
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 840eef59
...@@ -58,6 +58,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code) ...@@ -58,6 +58,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code)
return "IONIC_RC_BAD_ADDR"; return "IONIC_RC_BAD_ADDR";
case IONIC_RC_DEV_CMD: case IONIC_RC_DEV_CMD:
return "IONIC_RC_DEV_CMD"; return "IONIC_RC_DEV_CMD";
case IONIC_RC_ENOSUPP:
return "IONIC_RC_ENOSUPP";
case IONIC_RC_ERROR: case IONIC_RC_ERROR:
return "IONIC_RC_ERROR"; return "IONIC_RC_ERROR";
case IONIC_RC_ERDMA: case IONIC_RC_ERDMA:
...@@ -76,6 +78,7 @@ static int ionic_error_to_errno(enum ionic_status_code code) ...@@ -76,6 +78,7 @@ static int ionic_error_to_errno(enum ionic_status_code code)
case IONIC_RC_EQTYPE: case IONIC_RC_EQTYPE:
case IONIC_RC_EQID: case IONIC_RC_EQID:
case IONIC_RC_EINVAL: case IONIC_RC_EINVAL:
case IONIC_RC_ENOSUPP:
return -EINVAL; return -EINVAL;
case IONIC_RC_EPERM: case IONIC_RC_EPERM:
return -EPERM; return -EPERM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment