Skip to content

Commit

Permalink
[SCSI] scsi_transport_sas: mapping the rphy channel equal to the port…
Browse files Browse the repository at this point in the history
… identifier

We will be mapping the RAID volumes in mptsas to a reserved
channel that
is one larger than the anticapated number of ports on the direct
attached host
adapter.

Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Moore, Eric authored and James Bottomley committed Jan 14, 2006
1 parent 4b915a7 commit e6bc863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ int sas_rphy_add(struct sas_rphy *rphy)
mutex_unlock(&sas_host->lock);

if (rphy->scsi_target_id != -1) {
scsi_scan_target(&rphy->dev, parent->number,
scsi_scan_target(&rphy->dev, parent->port_identifier,
rphy->scsi_target_id, ~0, 0);
}

Expand Down Expand Up @@ -745,9 +745,9 @@ static int sas_user_scan(struct Scsi_Host *shost, uint channel,
if (rphy->scsi_target_id == -1)
continue;

if ((channel == SCAN_WILD_CARD || channel == parent->number) &&
if ((channel == SCAN_WILD_CARD || channel == parent->port_identifier) &&
(id == SCAN_WILD_CARD || id == rphy->scsi_target_id)) {
scsi_scan_target(&rphy->dev, parent->number,
scsi_scan_target(&rphy->dev, parent->port_identifier,
rphy->scsi_target_id, lun, 1);
}
}
Expand Down

0 comments on commit e6bc863

Please sign in to comment.