If particular LMAC does not exist then it's saner to return ENODEV
instead of EINVAL.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
return -EINVAL;
if (!roc_bphy_cgx_lmac_exists(roc_cgx, lmac))
- return -EINVAL;
+ return -ENODEV;
scr1 = FIELD_PREP(SCR1_ETH_CMD_ID, ETH_CMD_SET_FEC) |
FIELD_PREP(SCR1_ETH_SET_FEC_ARGS, fec);
return -EINVAL;
if (!roc_bphy_cgx_lmac_exists(roc_cgx, lmac))
- return -EINVAL;
+ return -ENODEV;
scr1 = FIELD_PREP(SCR1_ETH_CMD_ID, ETH_CMD_GET_SUPPORTED_FEC);