From: Nagalakshmi Nandigama Date: Mon, 7 May 2012 20:38:49 +0000 (-0700) Subject: [mpt2sas] Set the phy identifier of the end device to to the phy number of the parent... X-Git-Tag: v2.6.39-400.9.0~423^2~128 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=899c9bd23d85b5042d4dbcdffe2ac7d31f2d0cb9;p=users%2Fjedix%2Flinux-maple.git [mpt2sas] Set the phy identifier of the end device to to the phy number of the parent device it is linked to Orabug: 14040678 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 Signed-off-by: Maxim Uvarov --- diff --git a/drivers/scsi/mpt2sas/mpt2sas_transport.c b/drivers/scsi/mpt2sas/mpt2sas_transport.c index 865deb9a5e5a9..c6cf20f60720b 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, /* 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: