sfc: Add efx_nic_type operation for NVRAM self-test
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9bfc4bb1f9
commit
0aa3fbaa3f
@@ -113,10 +113,13 @@ out:
|
||||
|
||||
static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests)
|
||||
{
|
||||
int rc;
|
||||
int rc = 0;
|
||||
|
||||
if (efx->type->test_nvram) {
|
||||
rc = efx->type->test_nvram(efx);
|
||||
tests->nvram = rc ? -1 : 1;
|
||||
}
|
||||
|
||||
rc = falcon_read_nvram(efx, NULL);
|
||||
tests->nvram = rc ? -1 : 1;
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user