diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-28 22:43:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 19:46:31 -0500 |
commit | 0aa3fbaa3f2d29a14231ebb0c8e521c23701d41f (patch) | |
tree | 11ab228583d64eae81abe02f49e233fdab5cfb54 /drivers/net/sfc/selftest.c | |
parent | 9bfc4bb1f9b5863b177752b88e8bfa364e83a4fa (diff) |
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>
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r-- | drivers/net/sfc/selftest.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index f30355210044..fa56e2e8e9c5 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -113,10 +113,13 @@ out: | |||
113 | 113 | ||
114 | static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) | 114 | static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) |
115 | { | 115 | { |
116 | int rc; | 116 | int rc = 0; |
117 | |||
118 | if (efx->type->test_nvram) { | ||
119 | rc = efx->type->test_nvram(efx); | ||
120 | tests->nvram = rc ? -1 : 1; | ||
121 | } | ||
117 | 122 | ||
118 | rc = falcon_read_nvram(efx, NULL); | ||
119 | tests->nvram = rc ? -1 : 1; | ||
120 | return rc; | 123 | return rc; |
121 | } | 124 | } |
122 | 125 | ||