summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2004-01-23 23:23:31 +0000
committermjacob <mjacob@FreeBSD.org>2004-01-23 23:23:31 +0000
commit939fc514b730c96d1e1d0de49ff33873438a7866 (patch)
tree3d5d8b8a92ae6a35b6c3a3e7f34ef8d33b66b7d9 /sys
parentb8527c05c486b6e8cd9a2d7220ab421508be9f33 (diff)
downloadFreeBSD-src-939fc514b730c96d1e1d0de49ff33873438a7866.zip
FreeBSD-src-939fc514b730c96d1e1d0de49ff33873438a7866.tar.gz
If we have ISP_ROLE_INITIATOR set, make sure that we clear ICBOPT_INI_DISABLE
from the fwoptions. Likewise, we *set* ICBOPT_INI_DISABLE if we don't have initiator role.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 878b67c8..40dbf93 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -1221,6 +1221,12 @@ isp_fibre_init(struct ispsoftc *isp)
fcp->isp_fwoptions &= ~ICBOPT_TGT_ENABLE;
}
+ if (isp->isp_role & ISP_ROLE_INITIATOR) {
+ fcp->isp_fwoptions &= ~ICBOPT_INI_DISABLE;
+ } else {
+ fcp->isp_fwoptions |= ICBOPT_INI_DISABLE;
+ }
+
/*
* Propagate all of this into the ICB structure.
*/
OpenPOWER on IntegriCloud