Commit a692b0ee authored by Dan Williams's avatar Dan Williams Committed by James Bottomley

[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: default avatarPatrick Thomson <patrick.s.thomson@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent d214d81e
...@@ -122,7 +122,7 @@ static void sas_form_port(struct asd_sas_phy *phy) ...@@ -122,7 +122,7 @@ static void sas_form_port(struct asd_sas_phy *phy)
spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags); spin_unlock_irqrestore(&sas_ha->phy_port_lock, flags);
if (!port->port) { 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); BUG_ON(!port->port);
sas_port_add(port->port); sas_port_add(port->port);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment