Skip to contentSkip to conversation

mptsas: add parent port backlink

PATCH New James Bottomley 1 participant 1 message Jul 12, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

James

drivers/message/fusion/mptsas.c +6 -2
Index: BUILD-2.6/drivers/message/fusion/mptsas.c
===================================================================
@@ -1652,14 +1652,18 @@
 
 			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) {