diff options
Diffstat (limited to 'drivers/net/sfc/mcdi_phy.c')
-rw-r--r-- | drivers/net/sfc/mcdi_phy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/mcdi_phy.c b/drivers/net/sfc/mcdi_phy.c index 2f2354696663..5d344874f294 100644 --- a/drivers/net/sfc/mcdi_phy.c +++ b/drivers/net/sfc/mcdi_phy.c | |||
@@ -48,7 +48,7 @@ efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_cfg *cfg) | |||
48 | goto fail; | 48 | goto fail; |
49 | 49 | ||
50 | if (outlen < MC_CMD_GET_PHY_CFG_OUT_LEN) { | 50 | if (outlen < MC_CMD_GET_PHY_CFG_OUT_LEN) { |
51 | rc = -EMSGSIZE; | 51 | rc = -EIO; |
52 | goto fail; | 52 | goto fail; |
53 | } | 53 | } |
54 | 54 | ||
@@ -111,7 +111,7 @@ static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) | |||
111 | goto fail; | 111 | goto fail; |
112 | 112 | ||
113 | if (outlen < MC_CMD_GET_LOOPBACK_MODES_OUT_LEN) { | 113 | if (outlen < MC_CMD_GET_LOOPBACK_MODES_OUT_LEN) { |
114 | rc = -EMSGSIZE; | 114 | rc = -EIO; |
115 | goto fail; | 115 | goto fail; |
116 | } | 116 | } |
117 | 117 | ||
@@ -587,7 +587,7 @@ static int efx_mcdi_phy_test_alive(struct efx_nic *efx) | |||
587 | return rc; | 587 | return rc; |
588 | 588 | ||
589 | if (outlen < MC_CMD_GET_PHY_STATE_OUT_LEN) | 589 | if (outlen < MC_CMD_GET_PHY_STATE_OUT_LEN) |
590 | return -EMSGSIZE; | 590 | return -EIO; |
591 | if (MCDI_DWORD(outbuf, GET_PHY_STATE_STATE) != MC_CMD_PHY_STATE_OK) | 591 | if (MCDI_DWORD(outbuf, GET_PHY_STATE_STATE) != MC_CMD_PHY_STATE_OK) |
592 | return -EINVAL; | 592 | return -EINVAL; |
593 | 593 | ||