diff options
author | nagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com> | 2012-03-20 02:38:40 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-04-23 14:27:38 -0400 |
commit | 64bb81383afed5e87d54d8102baeebc9aeb97b8f (patch) | |
tree | 8f2dd2aea2322f574ccb612d47317c2edd337b74 /drivers | |
parent | 43d6ddfa7aba2439d5bd22973046bdcb0faa78fb (diff) |
[SCSI] mpt2sas: Set the phy identifier of the end device to the phy number of the parent device it is linked to
The phy_identifier inside the routine _transport_set_identify()
is set to sas_device_page_zero->PhyNum. This returns the
phy number of the parent device this device is linked to.
Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_transport.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_transport.c b/drivers/scsi/mpt2sas/mpt2sas_transport.c index 865deb9a5e5a..c6cf20f60720 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_transport.c +++ b/drivers/scsi/mpt2sas/mpt2sas_transport.c | |||
@@ -169,6 +169,9 @@ _transport_set_identify(struct MPT2SAS_ADAPTER *ioc, u16 handle, | |||
169 | /* sas_address */ | 169 | /* sas_address */ |
170 | identify->sas_address = le64_to_cpu(sas_device_pg0.SASAddress); | 170 | identify->sas_address = le64_to_cpu(sas_device_pg0.SASAddress); |
171 | 171 | ||
172 | /* phy number of the parent device this device is linked to */ | ||
173 | identify->phy_identifier = sas_device_pg0.PhyNum; | ||
174 | |||
172 | /* device_type */ | 175 | /* device_type */ |
173 | switch (device_info & MPI2_SAS_DEVICE_INFO_MASK_DEVICE_TYPE) { | 176 | switch (device_info & MPI2_SAS_DEVICE_INFO_MASK_DEVICE_TYPE) { |
174 | case MPI2_SAS_DEVICE_INFO_NO_DEVICE: | 177 | case MPI2_SAS_DEVICE_INFO_NO_DEVICE: |