scsi: qla2xxx: Display 16G only as supported speeds for 3830c card
authorSaurav Kashyap <skashyap@marvell.com>
Wed, 8 Sep 2021 16:46:14 +0000 (09:46 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Sep 2021 03:33:19 +0000 (23:33 -0400)
This card is unique and doesn't support lower speeds, hence update the fdmi
field to display 16G only.

Link: https://lore.kernel.org/r/20210908164622.19240-3-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_gs.c

index ebc8fdb..28b574e 100644 (file)
@@ -1537,7 +1537,8 @@ qla25xx_fdmi_port_speed_capability(struct qla_hw_data *ha)
        }
        if (IS_QLA2031(ha)) {
                if ((ha->pdev->subsystem_vendor == 0x103C) &&
-                   (ha->pdev->subsystem_device == 0x8002)) {
+                   ((ha->pdev->subsystem_device == 0x8002) ||
+                   (ha->pdev->subsystem_device == 0x8086))) {
                        speeds = FDMI_PORT_SPEED_16GB;
                } else {
                        speeds = FDMI_PORT_SPEED_16GB|FDMI_PORT_SPEED_8GB|