diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-28 22:43:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 19:46:30 -0500 |
commit | 9bfc4bb1f9b5863b177752b88e8bfa364e83a4fa (patch) | |
tree | c4ca25f993298ec1a2a10f6027e3958186b364dc /drivers/net/sfc/selftest.c | |
parent | eb9f6744cbfa97674c13263802259b5aa0034594 (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.c | 12 |
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 | ||
123 | static int efx_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) | 123 | static 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 | ||