Skip to content

Commit

Permalink
[SCSI] mpt2sas: Set the phy identifier of the end device to the phy n…
Browse files Browse the repository at this point in the history
…umber 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>
  • Loading branch information
nagalakshmi.nandigama@lsi.com authored and James Bottomley committed Apr 23, 2012
1 parent 43d6ddf commit 64bb813
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/scsi/mpt2sas/mpt2sas_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ _transport_set_identify(struct MPT2SAS_ADAPTER *ioc, u16 handle,
/* sas_address */
identify->sas_address = le64_to_cpu(sas_device_pg0.SASAddress);

/* phy number of the parent device this device is linked to */
identify->phy_identifier = sas_device_pg0.PhyNum;

/* device_type */
switch (device_info & MPI2_SAS_DEVICE_INFO_MASK_DEVICE_TYPE) {
case MPI2_SAS_DEVICE_INFO_NO_DEVICE:
Expand Down

0 comments on commit 64bb813

Please sign in to comment.