summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aic79xx_openbsd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2004-06-22 22:40:36 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2004-06-22 22:40:36 +0000
commit17cbd2d3be6733d498fb72d90d6f3c7e52303a06 (patch)
tree28676f11646a8a4b9187ebc41ad2c7e4a9d0418f /sys/dev/ic/aic79xx_openbsd.c
parent8f82eb3c9226e55fa05cde787c8a8124f3e44165 (diff)
Enable ahd interrupts and reset the channel before scanning the bus
for devices. This is how ahc is done too. Fixes probe hang on Theo's box with the 7902B chip. ok marco@
Diffstat (limited to 'sys/dev/ic/aic79xx_openbsd.c')
-rw-r--r--sys/dev/ic/aic79xx_openbsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c
index 3fbc4e132bf..49de4fbac4d 100644
--- a/sys/dev/ic/aic79xx_openbsd.c
+++ b/sys/dev/ic/aic79xx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.c,v 1.4 2004/06/21 18:33:04 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.5 2004/06/22 22:40:35 krw Exp $ */
/*
* Bus independent OpenBSD shim for the aic79xx based Adaptec SCSI controllers
*
@@ -109,14 +109,14 @@ ahd_attach(struct ahd_softc *ahd)
printf("%s: %s\n", ahd->sc_dev.dv_xname, ahd_info);
}
- ahd->sc_child = config_found((void *)&ahd->sc_dev,
- &ahd->sc_channel, scsiprint);
-
ahd_intr_enable(ahd, TRUE);
if (ahd->flags & AHD_RESET_BUS_A)
ahd_reset_channel(ahd, 'A', TRUE);
+ ahd->sc_child = config_found((void *)&ahd->sc_dev,
+ &ahd->sc_channel, scsiprint);
+
ahd_unlock(ahd, &s);
return (1);