summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2012-01-16 13:54:28 -0800
committerJames Bottomley <JBottomley@Parallels.com>2012-02-29 15:29:06 -0600
commita692b0eec5efae382dfa800e8b4b083f172921a7 (patch)
tree04cee8e7776630d89d8a66ad5a88baf503a54acc
parentd214d81e883b6fc6f11cc772ff88585565d45cce (diff)
downloadlinux-a692b0eec5efae382dfa800e8b4b083f172921a7.tar.gz
linux-a692b0eec5efae382dfa800e8b4b083f172921a7.tar.xz
[SCSI] libsas: fix sas port naming
Make sas-port naming consistent with the expander-attached case whereby the phy-id is the last digit in the port name. Otherwise we get the random behavior of the allocation order. Reported-by: Patrick Thomson <patrick.s.thomson@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/libsas/sas_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_port.c b/drivers/scsi/libsas/sas_port.c
index 59ee8a0a6ea9..29f8fd335523 100644
--- a/drivers/scsi/libsas/sas_port.c
+++ b/drivers/scsi/libsas/sas_port.c
@@ -122,7 +122,7 @@ static void sas_form_port(struct asd_sas_phy *phy)
spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags);
if (!port->port) {
- port->port = sas_port_alloc(phy->phy->dev.parent, port->id);
+ port->port = sas_port_alloc(phy->phy->dev.parent, phy->id);
BUG_ON(!port->port);
sas_port_add(port->port);
}