aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2006-07-11 17:49:34 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-07-12 09:20:01 -0400
commite8bf39417b578a11e2ee2cd16e794a5b2d40757b (patch)
tree7e20aa4b9c483b62a91cf3e5f6a2bc51074c507c /drivers/scsi
parenta0e1b6ef3b851fe6f1dcc259432e83de79ce5e7f (diff)
[SCSI] scsi_transport_sas: kill the use of channel
Using the port_id for the channel is completely unnecessary since the host_id/target_id are constructed to be globally unique. Also move the mptsas driver on to virtual channel 1 for its raid devices. Acked-by: "Moore, Eric" <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_transport_sas.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
index 7871bc25fafb..5a625c3fddae 100644
--- a/drivers/scsi/scsi_transport_sas.c
+++ b/drivers/scsi/scsi_transport_sas.c
@@ -1194,7 +1194,7 @@ int sas_rphy_add(struct sas_rphy *rphy)
1194 1194
1195 if (identify->device_type == SAS_END_DEVICE && 1195 if (identify->device_type == SAS_END_DEVICE &&
1196 rphy->scsi_target_id != -1) { 1196 rphy->scsi_target_id != -1) {
1197 scsi_scan_target(&rphy->dev, parent->port_identifier, 1197 scsi_scan_target(&rphy->dev, 0,
1198 rphy->scsi_target_id, ~0, 0); 1198 rphy->scsi_target_id, ~0, 0);
1199 } 1199 }
1200 1200
@@ -1296,15 +1296,13 @@ static int sas_user_scan(struct Scsi_Host *shost, uint channel,
1296 1296
1297 mutex_lock(&sas_host->lock); 1297 mutex_lock(&sas_host->lock);
1298 list_for_each_entry(rphy, &sas_host->rphy_list, list) { 1298 list_for_each_entry(rphy, &sas_host->rphy_list, list) {
1299 struct sas_port *parent = dev_to_sas_port(rphy->dev.parent);
1300
1301 if (rphy->identify.device_type != SAS_END_DEVICE || 1299 if (rphy->identify.device_type != SAS_END_DEVICE ||
1302 rphy->scsi_target_id == -1) 1300 rphy->scsi_target_id == -1)
1303 continue; 1301 continue;
1304 1302
1305 if ((channel == SCAN_WILD_CARD || channel == parent->port_identifier) && 1303 if ((channel == SCAN_WILD_CARD || channel == 0) &&
1306 (id == SCAN_WILD_CARD || id == rphy->scsi_target_id)) { 1304 (id == SCAN_WILD_CARD || id == rphy->scsi_target_id)) {
1307 scsi_scan_target(&rphy->dev, parent->port_identifier, 1305 scsi_scan_target(&rphy->dev, 0,
1308 rphy->scsi_target_id, lun, 1); 1306 rphy->scsi_target_id, lun, 1);
1309 } 1307 }
1310 } 1308 }