summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-08-13 12:11:16 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-08-13 12:11:16 +0000
commitde66a16f611bc8f35c3a1dede160b585ada2b54d (patch)
tree07e36f430e0b600a25defdac3b95b12f0c62bc73 /sys/dev/ic
parente76d36f7bde9ccb2e53f44809d3255c92238c438 (diff)
Give SCSIBUS_B probing a chance to work with better logic in
SCSI_IS_SCSIBUS_B(). i.e. return true when 'A' is finished probing (sc_child != NULL) and the sc_link->bus is != sc_child.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/aic7xxx_openbsd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aic7xxx_openbsd.h b/sys/dev/ic/aic7xxx_openbsd.h
index a26a9fd0951..38f7273c0c4 100644
--- a/sys/dev/ic/aic7xxx_openbsd.h
+++ b/sys/dev/ic/aic7xxx_openbsd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic7xxx_openbsd.h,v 1.30 2020/07/28 21:33:14 krw Exp $ */
+/* $OpenBSD: aic7xxx_openbsd.h,v 1.31 2020/08/13 12:11:15 krw Exp $ */
/* $NetBSD: aic7xxx_osm.h,v 1.7 2003/11/02 11:07:44 wiz Exp $ */
/*
@@ -86,7 +86,7 @@
/****************************** Platform Macros *******************************/
#define SCSI_IS_SCSIBUS_B(ahc, sc_link) \
- (((sc_link)->bus != NULL) && ((sc_link)->bus == (ahc)->sc_child_b))
+ (((ahc)->sc_child != NULL) && ((sc_link)->bus != (ahc)->sc_child))
#define SCSI_SCSI_ID(ahc, sc_link) \
(SCSI_IS_SCSIBUS_B(ahc, sc_link) ? ahc->our_id_b : ahc->our_id)
#define SCSI_CHANNEL(ahc, sc_link) \