From 6a04333133886a742f1cabccae7c854b3f8fe1bf Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 30 Sep 1998 00:10:44 +0000 Subject: [PATCH] Perform a hard reset on cards when the command fails. This should help those people that have cards that become wedged when a bogus command is issued that are too wedged to have a soft reset help. --- sys/dev/aha/aha.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index 21b12f4267e9..3fc63d90d5b0 100644 --- a/sys/dev/aha/aha.c +++ b/sys/dev/aha/aha.c @@ -55,7 +55,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: aha.c,v 1.3 1998/09/17 00:08:29 gibbs Exp $ + * $Id: aha.c,v 1.4 1998/09/29 06:50:21 imp Exp $ */ #include @@ -1588,7 +1588,7 @@ aha_cmd(struct aha_softc *aha, aha_op_t opcode, u_int8_t *params, CMD_REG_BUSY|DIAG_FAIL|DIAG_ACTIVE)) != 0 || (status & (HA_READY|INIT_REQUIRED)) != (HA_READY|INIT_REQUIRED)) { - ahareset(aha, /*hard_reset*/FALSE); + ahareset(aha, /*hard_reset*/TRUE); } return (EINVAL); }