Get correct firmware/model information for multiple unit directories.
This commit is contained in:
parent
ddd74b0048
commit
fd59632766
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114223
@ -641,6 +641,10 @@ sbp_probe_lun(struct sbp_dev *sdev)
|
|||||||
crom_search_key(cc, CSRKEY_VENDOR);
|
crom_search_key(cc, CSRKEY_VENDOR);
|
||||||
crom_next(cc);
|
crom_next(cc);
|
||||||
crom_parse_text(cc, sdev->vendor, sizeof(sdev->vendor));
|
crom_parse_text(cc, sdev->vendor, sizeof(sdev->vendor));
|
||||||
|
/* skip to the unit directory for SBP-2 */
|
||||||
|
while ((reg = crom_search_key(cc, CSRKEY_VER)) != NULL)
|
||||||
|
if (reg->val == CSRVAL_T10SBP2)
|
||||||
|
break;
|
||||||
/* get firmware revision */
|
/* get firmware revision */
|
||||||
reg = crom_search_key(cc, CSRKEY_FIRM_VER);
|
reg = crom_search_key(cc, CSRKEY_FIRM_VER);
|
||||||
if (reg != NULL)
|
if (reg != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user