Commit b548a988 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

sfc: Log specific message for failure of NVRAM self-test

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 41b7e4c3
...@@ -932,20 +932,26 @@ int efx_mcdi_nvram_test_all(struct efx_nic *efx) ...@@ -932,20 +932,26 @@ int efx_mcdi_nvram_test_all(struct efx_nic *efx)
rc = efx_mcdi_nvram_types(efx, &nvram_types); rc = efx_mcdi_nvram_types(efx, &nvram_types);
if (rc) if (rc)
return rc; goto fail1;
type = 0; type = 0;
while (nvram_types != 0) { while (nvram_types != 0) {
if (nvram_types & 1) { if (nvram_types & 1) {
rc = efx_mcdi_nvram_test(efx, type); rc = efx_mcdi_nvram_test(efx, type);
if (rc) if (rc)
return rc; goto fail2;
} }
type++; type++;
nvram_types >>= 1; nvram_types >>= 1;
} }
return 0; return 0;
fail2:
EFX_ERR(efx, "%s: failed type=%u\n", __func__, type);
fail1:
EFX_ERR(efx, "%s: failed rc=%d\n", __func__, rc);
return rc;
} }
static int efx_mcdi_read_assertion(struct efx_nic *efx) static int efx_mcdi_read_assertion(struct efx_nic *efx)
......
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