Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292894
b: refs/heads/master
c: bbef6c0
h: refs/heads/master
v: v3
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Feb 19, 2012
1 parent 7be7805 commit 1e81148
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 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: 9bc3711cbb67ac620bf09b4a147cbab45b2c36c0
refs/heads/master: bbef6c0ce8046114c07f5b6a62ce6a239503dd61
25 changes: 5 additions & 20 deletions trunk/drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1647,30 +1647,15 @@ static void figure_bus_target_lun(struct ctlr_info *h,
*target = (lunid >> 16) & 0x3fff;
*lun = lunid & 0x00ff;
} else {
if (likely(is_scsi_rev_5(h))) {
/* All current smart arrays (circa 2011) */
*bus = 0;
*target = 0;
*lun = (lunid & 0x3fff) + 1;
} else {
/* Traditional old smart array way. */
*bus = 0;
*target = lunid & 0x3fff;
*lun = 0;
}
*bus = 0;
*target = 0;
*lun = (lunid & 0x3fff);
}
} else {
/* physical device */
if (is_hba_lunid(lunaddrbytes))
if (unlikely(is_scsi_rev_5(h))) {
*bus = 0; /* put p1210m ctlr at 0,0,0 */
*target = 0;
*lun = 0;
return;
} else
*bus = 3; /* traditional smartarray */
*bus = 3; /* controller */
else
*bus = 2; /* physical disk */
*bus = 2; /* physical device */
*target = -1;
*lun = -1; /* we will fill these in later. */
}
Expand Down

0 comments on commit 1e81148

Please sign in to comment.