diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c b/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c index 73de9d37c9..7d7bf7a032 100644 --- a/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c +++ b/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c @@ -15052,9 +15052,9 @@ mptsas_create_phys_lun(dev_info_t *pdip, struct scsi_inquiry *inq, goto phys_create_done; } - if (IS_ATAPI_DEVICE(dev_info)) { + if (IS_SATA_DEVICE(dev_info)) { if (ndi_prop_update_string(DDI_DEV_T_NONE, - *lun_dip, MPTSAS_VARIANT, "atapi") != + *lun_dip, MPTSAS_VARIANT, "sata") != DDI_PROP_SUCCESS) { mptsas_log(mpt, CE_WARN, "mptsas unable to create " @@ -15064,9 +15064,9 @@ mptsas_create_phys_lun(dev_info_t *pdip, struct scsi_inquiry *inq, } } - if (IS_SATA_DEVICE(dev_info)) { + if (IS_ATAPI_DEVICE(dev_info)) { if (ndi_prop_update_string(DDI_DEV_T_NONE, - *lun_dip, MPTSAS_VARIANT, "sata") != + *lun_dip, MPTSAS_VARIANT, "atapi") != DDI_PROP_SUCCESS) { mptsas_log(mpt, CE_WARN, "mptsas unable to create " @@ -15075,6 +15075,7 @@ mptsas_create_phys_lun(dev_info_t *pdip, struct scsi_inquiry *inq, goto phys_create_done; } } + phys_raid_lun: /* * if this is a SAS controller, and the target is a SATA |