diff options
author | 2004-06-22 22:40:35 +0000 | |
---|---|---|
committer | 2004-06-22 22:40:35 +0000 | |
commit | 6095df9b67d5ea6ff9c2d0a2297e5c204ef5daff (patch) | |
tree | 90cbe9f9eb0c7fc6b4186933b7f78594ca5dddb5 | |
parent | Rewrite of getmntopts(), making it more robust and getting rid of (diff) | |
download | wireguard-openbsd-6095df9b67d5ea6ff9c2d0a2297e5c204ef5daff.tar.xz wireguard-openbsd-6095df9b67d5ea6ff9c2d0a2297e5c204ef5daff.zip |
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@
-rw-r--r-- | sys/dev/ic/aic79xx_openbsd.c | 8 |
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); |