Skip to content

Commit

Permalink
[SCSI] qla2xxx: Add Gen3 PCIe speed 8GT/s to the log message.
Browse files Browse the repository at this point in the history
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Saurav Kashyap authored and James Bottomley committed Nov 30, 2012
1 parent 7e98df2 commit 49300af
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,20 @@ qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str)
(BIT_4 | BIT_5 | BIT_6 | BIT_7 | BIT_8 | BIT_9)) >> 4;

strcpy(str, "PCIe (");
if (lspeed == 1)
switch (lspeed) {
case 1:
strcat(str, "2.5GT/s ");
else if (lspeed == 2)
break;
case 2:
strcat(str, "5.0GT/s ");
else
break;
case 3:
strcat(str, "8.0GT/s ");
break;
default:
strcat(str, "<unknown> ");
break;
}
snprintf(lwstr, sizeof(lwstr), "x%d)", lwidth);
strcat(str, lwstr);

Expand Down

0 comments on commit 49300af

Please sign in to comment.