aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/selftest.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-28 22:43:23 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-29 19:46:30 -0500
commit9bfc4bb1f9b5863b177752b88e8bfa364e83a4fa (patch)
treec4ca25f993298ec1a2a10f6027e3958186b364dc /drivers/net/sfc/selftest.c
parenteb9f6744cbfa97674c13263802259b5aa0034594 (diff)
sfc: Add efx_nic_type operation for register 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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c
index f45bf7442154..f30355210044 100644
--- a/drivers/net/sfc/selftest.c
+++ b/drivers/net/sfc/selftest.c
@@ -122,14 +122,14 @@ static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests)
122 122
123static int efx_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) 123static int efx_test_chip(struct efx_nic *efx, struct efx_self_tests *tests)
124{ 124{
125 int rc; 125 int rc = 0;
126 126
127 /* Not supported on A-series silicon */ 127 /* Test register access */
128 if (efx_nic_rev(efx) < EFX_REV_FALCON_B0) 128 if (efx->type->test_registers) {
129 return 0; 129 rc = efx->type->test_registers(efx);
130 tests->registers = rc ? -1 : 1;
131 }
130 132
131 rc = falcon_test_registers(efx);
132 tests->registers = rc ? -1 : 1;
133 return rc; 133 return rc;
134} 134}
135 135