diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2006-07-12 09:51:04 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-07-28 14:48:54 -0400 |
commit | 0c269e6d3c615403a6e0acbe6e88f1c0da9c2396 (patch) | |
tree | e23fa9700542b879dcc39d90ac3004b71e71c064 /drivers/message | |
parent | f4c8aa1107969c26b1984eb2996a58f816dea71f (diff) |
[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: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index f66f2203143a..dfdd1e445768 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -1642,14 +1642,18 @@ static int mptsas_probe_one_phy(struct device *dev, | |||
1642 | 1642 | ||
1643 | for (i = 0; i < port_info->num_phys; i++) | 1643 | for (i = 0; i < port_info->num_phys; i++) |
1644 | if (port_info->phy_info[i].identify.sas_address == | 1644 | if (port_info->phy_info[i].identify.sas_address == |
1645 | identify.sas_address) | 1645 | identify.sas_address) { |
1646 | sas_port_mark_backlink(port); | ||
1646 | goto out; | 1647 | goto out; |
1648 | } | ||
1647 | 1649 | ||
1648 | } else if (scsi_is_sas_rphy(parent)) { | 1650 | } else if (scsi_is_sas_rphy(parent)) { |
1649 | struct sas_rphy *parent_rphy = dev_to_rphy(parent); | 1651 | struct sas_rphy *parent_rphy = dev_to_rphy(parent); |
1650 | if (identify.sas_address == | 1652 | if (identify.sas_address == |
1651 | parent_rphy->identify.sas_address) | 1653 | parent_rphy->identify.sas_address) { |
1654 | sas_port_mark_backlink(port); | ||
1652 | goto out; | 1655 | goto out; |
1656 | } | ||
1653 | } | 1657 | } |
1654 | 1658 | ||
1655 | switch (identify.device_type) { | 1659 | switch (identify.device_type) { |