aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorSaurav Kashyap <saurav.kashyap@qlogic.com>2012-11-21 02:40:34 -0500
committerJames Bottomley <JBottomley@Parallels.com>2012-11-30 09:48:29 -0500
commit49300af727bf095bff9dca71547b21a05f92b243 (patch)
treeeade0aa5423f9296b2ea76236dbd5bee30bdeec2 /drivers/scsi
parent7e98df229e915fdc38451d6f2de94e0589793288 (diff)
[SCSI] qla2xxx: Add Gen3 PCIe speed 8GT/s to the log message.
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index e4fd19281943..67f7b56e1b0b 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -494,12 +494,20 @@ qla24xx_pci_info_str(struct scsi_qla_host *vha, char *str)
494 (BIT_4 | BIT_5 | BIT_6 | BIT_7 | BIT_8 | BIT_9)) >> 4; 494 (BIT_4 | BIT_5 | BIT_6 | BIT_7 | BIT_8 | BIT_9)) >> 4;
495 495
496 strcpy(str, "PCIe ("); 496 strcpy(str, "PCIe (");
497 if (lspeed == 1) 497 switch (lspeed) {
498 case 1:
498 strcat(str, "2.5GT/s "); 499 strcat(str, "2.5GT/s ");
499 else if (lspeed == 2) 500 break;
501 case 2:
500 strcat(str, "5.0GT/s "); 502 strcat(str, "5.0GT/s ");
501 else 503 break;
504 case 3:
505 strcat(str, "8.0GT/s ");
506 break;
507 default:
502 strcat(str, "<unknown> "); 508 strcat(str, "<unknown> ");
509 break;
510 }
503 snprintf(lwstr, sizeof(lwstr), "x%d)", lwidth); 511 snprintf(lwstr, sizeof(lwstr), "x%d)", lwidth);
504 strcat(str, lwstr); 512 strcat(str, lwstr);
505 513