Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299860
b: refs/heads/master
c: 1699490
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Jackson authored and James Bottomley committed Apr 23, 2012
1 parent 0022ec2 commit 2863984
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22b9153faa2263aa89625de25e71c7d44c8dbd16
refs/heads/master: 1699490db339e2c6b3037ea8e7dcd6b2755b688e
17 changes: 12 additions & 5 deletions trunk/drivers/scsi/libsas/sas_expander.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,18 +1718,25 @@ static int sas_find_bcast_phy(struct domain_device *dev, int *phy_id,
int phy_change_count = 0;

res = sas_get_phy_change_count(dev, i, &phy_change_count);
if (res)
goto out;
else if (phy_change_count != ex->ex_phy[i].phy_change_count) {
switch (res) {
case SMP_RESP_PHY_VACANT:
case SMP_RESP_NO_PHY:
continue;
case SMP_RESP_FUNC_ACC:
break;
default:
return res;
}

if (phy_change_count != ex->ex_phy[i].phy_change_count) {
if (update)
ex->ex_phy[i].phy_change_count =
phy_change_count;
*phy_id = i;
return 0;
}
}
out:
return res;
return 0;
}

static int sas_get_ex_change_count(struct domain_device *dev, int *ecc)
Expand Down

0 comments on commit 2863984

Please sign in to comment.