]> err.no Git - linux-2.6/commitdiff
[SCSI] mptsas: add parent port backlink
authorJames Bottomley <James.Bottomley@steeleye.com>
Wed, 12 Jul 2006 13:51:04 +0000 (09:51 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Fri, 28 Jul 2006 18:48:54 +0000 (13:48 -0500)
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: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptsas.c

index f66f2203143a8435c8e84840a12204afefda76ba..dfdd1e445768273a56b1b8105876d335a4008c7b 100644 (file)
@@ -1642,14 +1642,18 @@ 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) {