Skip to content

Commit b2133d8

Browse files
emuslndavem330
authored andcommitted
ionic: add decode for IONIC_RC_ENOSUPP
Add decoding for a new firmware error code. Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 840eef5 commit b2133d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/pensando/ionic/ionic_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code)
5858
return "IONIC_RC_BAD_ADDR";
5959
case IONIC_RC_DEV_CMD:
6060
return "IONIC_RC_DEV_CMD";
61+
case IONIC_RC_ENOSUPP:
62+
return "IONIC_RC_ENOSUPP";
6163
case IONIC_RC_ERROR:
6264
return "IONIC_RC_ERROR";
6365
case IONIC_RC_ERDMA:
@@ -76,6 +78,7 @@ static int ionic_error_to_errno(enum ionic_status_code code)
7678
case IONIC_RC_EQTYPE:
7779
case IONIC_RC_EQID:
7880
case IONIC_RC_EINVAL:
81+
case IONIC_RC_ENOSUPP:
7982
return -EINVAL;
8083
case IONIC_RC_EPERM:
8184
return -EPERM;

0 commit comments

Comments
 (0)