Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej_scsipi]: src/sys/dev/ic Ops, unfreeze the queue after a reset too.



details:   https://anonhg.NetBSD.org/src/rev/66f745fb283b
branches:  thorpej_scsipi
changeset: 477463:66f745fb283b
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Tue Apr 03 15:32:58 2001 +0000

description:
Ops, unfreeze the queue after a reset too.

diffstat:

 sys/dev/ic/siop.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 120806032891 -r 66f745fb283b sys/dev/ic/siop.c
--- a/sys/dev/ic/siop.c Tue Apr 03 15:30:41 2001 +0000
+++ b/sys/dev/ic/siop.c Tue Apr 03 15:32:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop.c,v 1.37.2.11 2001/04/03 15:30:41 bouyer Exp $    */
+/*     $NetBSD: siop.c,v 1.37.2.12 2001/04/03 15:32:58 bouyer Exp $    */
 
 /*
  * Copyright (c) 2000 Manuel Bouyer.
@@ -1120,6 +1120,11 @@
        printf("%s: scsi bus reset\n", sc->sc_dev.dv_xname);
        /* stop, reset and restart the chip */
        siop_reset(sc);
+       if (sc->sc_flags & SCF_CHAN_NOSLOT) {
+               /* chip has been reset, all slots are free now */
+               sc->sc_flags &= ~SCF_CHAN_NOSLOT;
+               scsipi_channel_thaw(&sc->sc_chan, 1);
+       }
        /*
         * Process all commands: first commmands being executed
         */



Home | Main Index | Thread Index | Old Index