Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c269e6d authored by James Bottomley's avatar James Bottomley Committed by James Bottomley
Browse files

[SCSI] mptsas: add parent port backlink



This takes advantage of the sas class backlink function to show which
port on an expander is used to communicate with the parent.

Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent f4c8aa11
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1642,15 +1642,19 @@ static int mptsas_probe_one_phy(struct device *dev,

			for (i = 0; i < port_info->num_phys; i++)
				if (port_info->phy_info[i].identify.sas_address ==
				    identify.sas_address)
				    identify.sas_address) {
					sas_port_mark_backlink(port);
					goto out;
				}

		} else if (scsi_is_sas_rphy(parent)) {
			struct sas_rphy *parent_rphy = dev_to_rphy(parent);
			if (identify.sas_address ==
			    parent_rphy->identify.sas_address)
			    parent_rphy->identify.sas_address) {
				sas_port_mark_backlink(port);
				goto out;
			}
		}

		switch (identify.device_type) {
		case SAS_END_DEVICE: