diff options
author | Steve Hodgson <shodgson@solarflare.com> | 2010-02-03 10:30:17 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-04 04:12:43 +0100 |
commit | 8b2103add08b79abd3ac7015b4bac744c0af534e (patch) | |
tree | 018ee0b97a17a702dd163d17cf13483ae1906408 /drivers/net/sfc/siena.c | |
parent | sfc: Update MCDI protocol definitions (diff) | |
download | linux-8b2103add08b79abd3ac7015b4bac744c0af534e.tar.xz linux-8b2103add08b79abd3ac7015b4bac744c0af534e.zip |
sfc: Handle firmware assertion failure while resetting
This allows the driver to recover if the MC firmware has crashed due
to an assertion failure.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/sfc/siena.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/sfc/siena.c b/drivers/net/sfc/siena.c index f8c6771e66d8..0e4c13abf087 100644 --- a/drivers/net/sfc/siena.c +++ b/drivers/net/sfc/siena.c @@ -181,6 +181,12 @@ static int siena_test_registers(struct efx_nic *efx) static int siena_reset_hw(struct efx_nic *efx, enum reset_type method) { + int rc; + + /* Recover from a failed assertion pre-reset */ + rc = efx_mcdi_handle_assertion(efx); + if (rc) + return rc; if (method == RESET_TYPE_WORLD) return efx_mcdi_reset_mc(efx); |