changeset 13076:c6f4287974e0

6974566 Installing Solaris with the internal DVD fails useing the current "cdrom" devalias/path
author ming li - Sun Microsystems - Beijing China <River.Li@Sun.COM>
date Wed, 11 Aug 2010 09:31:17 +0800
parents c0041de1a10c
children 5025f7554e44
files usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
diffstat 1 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c	Tue Aug 10 17:19:16 2010 -0700
+++ b/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c	Wed Aug 11 09:31:17 2010 +0800
@@ -15052,6 +15052,18 @@
 			goto phys_create_done;
 		}
 
+		if (IS_SATA_DEVICE(dev_info)) {
+			if (ndi_prop_update_string(DDI_DEV_T_NONE,
+			    *lun_dip, MPTSAS_VARIANT, "sata") !=
+			    DDI_PROP_SUCCESS) {
+				mptsas_log(mpt, CE_WARN,
+				    "mptsas unable to create "
+				    "property for device variant ");
+				ndi_rtn = NDI_FAILURE;
+				goto phys_create_done;
+			}
+		}
+
 		if (IS_ATAPI_DEVICE(dev_info)) {
 			if (ndi_prop_update_string(DDI_DEV_T_NONE,
 			    *lun_dip, MPTSAS_VARIANT, "atapi") !=
@@ -15064,17 +15076,6 @@
 			}
 		}
 
-		if (IS_SATA_DEVICE(dev_info)) {
-			if (ndi_prop_update_string(DDI_DEV_T_NONE,
-			    *lun_dip, MPTSAS_VARIANT, "sata") !=
-			    DDI_PROP_SUCCESS) {
-				mptsas_log(mpt, CE_WARN,
-				    "mptsas unable to create "
-				    "property for device variant ");
-				ndi_rtn = NDI_FAILURE;
-				goto phys_create_done;
-			}
-		}
 phys_raid_lun:
 		/*
 		 * if this is a SAS controller, and the target is a SATA