|
@@ -1545,8 +1545,14 @@ int sas_rphy_add(struct sas_rphy *rphy)
|
|
|
|
|
|
if (identify->device_type == SAS_END_DEVICE &&
|
|
|
rphy->scsi_target_id != -1) {
|
|
|
- scsi_scan_target(&rphy->dev, 0,
|
|
|
- rphy->scsi_target_id, SCAN_WILD_CARD, 0);
|
|
|
+ int lun;
|
|
|
+
|
|
|
+ if (identify->target_port_protocols & SAS_PROTOCOL_SSP)
|
|
|
+ lun = SCAN_WILD_CARD;
|
|
|
+ else
|
|
|
+ lun = 0;
|
|
|
+
|
|
|
+ scsi_scan_target(&rphy->dev, 0, rphy->scsi_target_id, lun, 0);
|
|
|
}
|
|
|
|
|
|
return 0;
|