sfc: work around TRIGGER_INTERRUPT command not working on SFC9140
authorJon Cooper <jcooper@solarflare.com>
Fri, 26 Aug 2016 14:13:30 +0000 (15:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Aug 2016 04:43:52 +0000 (21:43 -0700)
commit942e298eba850a866a673fa159774313650ce5cc
tree4a30488233e961ec367b9fe3a103ea0c6a6a3775
parentdf0562c386c778c802b981fc4015a636aa5db866
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>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/farch.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/selftest.c
drivers/net/ethernet/sfc/selftest.h