svn commit: r196162 - head/sys/dev/isp

Matt Jacob mjacob at FreeBSD.org
Thu Aug 13 01:17:27 UTC 2009


Author: mjacob
Date: Thu Aug 13 01:17:26 2009
New Revision: 196162
URL: http://svn.freebsd.org/changeset/base/196162

Log:
  Have at least *some* default WWN to fall back on,
  otherwise Sun branded FC cards won't configure.
  
  Reviewed by:	Ken, Scott
  Approved by:	re

Modified:
  head/sys/dev/isp/isp_freebsd.c

Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c	Wed Aug 12 21:34:57 2009	(r196161)
+++ head/sys/dev/isp/isp_freebsd.c	Thu Aug 13 01:17:26 2009	(r196162)
@@ -5280,6 +5280,10 @@ isp_default_wwn(ispsoftc_t * isp, int ch
 			return (seed);
 		}
 		seed = iswwnn ? FCPARAM(isp, chan)->isp_wwnn_nvram : FCPARAM(isp, chan)->isp_wwpn_nvram;
+		if (seed) {
+			return (seed);
+		}
+		return (0x400000007F000009ull);
 	} else {
 		seed = iswwnn ? fc->def_wwnn : fc->def_wwpn;
 	}


More information about the svn-src-head mailing list