mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[SCSI] qla2xxx: Add Gen3 PCIe speed 8GT/s to the log message.
Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
7e98df229e
commit
49300af727
1 changed files with 11 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue