Commit e6bc863cf25f30ed8e2a4d41b76d5688f8efaee9

Authored by Moore, Eric
Committed by James Bottomley
1 parent 4b915a7366

[SCSI] scsi_transport_sas: mapping the rphy channel equal to the port 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>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

drivers/scsi/scsi_transport_sas.c
... ... @@ -638,7 +638,7 @@
638 638 mutex_unlock(&sas_host->lock);
639 639  
640 640 if (rphy->scsi_target_id != -1) {
641   - scsi_scan_target(&rphy->dev, parent->number,
  641 + scsi_scan_target(&rphy->dev, parent->port_identifier,
642 642 rphy->scsi_target_id, ~0, 0);
643 643 }
644 644  
645 645  
... ... @@ -745,9 +745,9 @@
745 745 if (rphy->scsi_target_id == -1)
746 746 continue;
747 747  
748   - if ((channel == SCAN_WILD_CARD || channel == parent->number) &&
  748 + if ((channel == SCAN_WILD_CARD || channel == parent->port_identifier) &&
749 749 (id == SCAN_WILD_CARD || id == rphy->scsi_target_id)) {
750   - scsi_scan_target(&rphy->dev, parent->number,
  750 + scsi_scan_target(&rphy->dev, parent->port_identifier,
751 751 rphy->scsi_target_id, lun, 1);
752 752 }
753 753 }