diff options
author | Jon Cooper <jcooper@solarflare.com> | 2016-08-26 15:13:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-26 21:43:52 -0700 |
commit | 942e298eba850a866a673fa159774313650ce5cc (patch) | |
tree | 4a30488233e961ec367b9fe3a103ea0c6a6a3775 /drivers/net/ethernet/sfc/selftest.h | |
parent | df0562c386c778c802b981fc4015a636aa5db866 (diff) | |
download | blackbird-op-linux-942e298eba850a866a673fa159774313650ce5cc.tar.gz blackbird-op-linux-942e298eba850a866a673fa159774313650ce5cc.zip |
sfc: work around TRIGGER_INTERRUPT command not working on SFC9140
MC_CMD_TRIGGER_INTERRUPT does not work on the SFC9140, as used in the
sfn7x42q and sfn7x24f.
Check for this using the MCDI workaround mechanism.
The command is only used during self test. If it's not supported, skip
the interrupt test.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/selftest.h')
-rw-r--r-- | drivers/net/ethernet/sfc/selftest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/selftest.h b/drivers/net/ethernet/sfc/selftest.h index 009dbe88f3be..32a427253a03 100644 --- a/drivers/net/ethernet/sfc/selftest.h +++ b/drivers/net/ethernet/sfc/selftest.h @@ -28,7 +28,7 @@ struct efx_loopback_self_tests { /* Efx self test results * For fields which are not counters, 1 indicates success and -1 - * indicates failure. + * indicates failure; 0 indicates test could not be run. */ struct efx_self_tests { /* online tests */ |