summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-08-08 09:51:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-08-08 09:51:54 +0000
commit79b24f4b29aca1f80b7721c953885527bd10ff1f (patch)
treeb8c7e54329d779612ff4059eb56761fb2406cf88 /sys/dev
parent4e578953552028385eef2572c9d1aac0c55ce1db (diff)
if the port is fc, populate the adapters scsi_link structure with the wwpn
and wwnn so scsibus can use it. requested by and ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/isp_openbsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/isp_openbsd.c b/sys/dev/ic/isp_openbsd.c
index 34ede398ce8..55791ebefc2 100644
--- a/sys/dev/ic/isp_openbsd.c
+++ b/sys/dev/ic/isp_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isp_openbsd.c,v 1.38 2009/07/01 20:55:57 kettenis Exp $ */
+/* $OpenBSD: isp_openbsd.c,v 1.39 2009/08/08 09:51:53 dlg Exp $ */
/*
* Platform (OpenBSD) dependent common attachment code for QLogic adapters.
*
@@ -113,6 +113,8 @@ isp_attach(struct ispsoftc *isp)
if (IS_FC(isp)) {
lptr->adapter_buswidth = MAX_FC_TARG;
lptr->adapter_target = MAX_FC_TARG; /* i.e. ignore. */
+ lptr->node_wwn = ISP_NODEWWN(isp);
+ lptr->port_wwn = ISP_PORTWWN(isp);
} else {
sdparam *sdp = isp->isp_param;
lptr->adapter_buswidth = MAX_TARGETS;