Commit 4709272f authored by Quinn Tran's avatar Quinn Tran Committed by Martin K. Petersen

scsi: qla2xxx: Indicate correct supported speeds for Mezz card

Correct the supported speeds for 16G Mezz card.

Link: https://lore.kernel.org/r/20200806111014.28434-4-njavali@marvell.comReviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarQuinn Tran <qutran@marvell.com>
Signed-off-by: default avatarNilesh Javali <njavali@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a117579d
...@@ -1505,11 +1505,11 @@ qla2x00_prep_ct_fdmi_req(struct ct_sns_pkt *p, uint16_t cmd, ...@@ -1505,11 +1505,11 @@ qla2x00_prep_ct_fdmi_req(struct ct_sns_pkt *p, uint16_t cmd,
static uint static uint
qla25xx_fdmi_port_speed_capability(struct qla_hw_data *ha) qla25xx_fdmi_port_speed_capability(struct qla_hw_data *ha)
{ {
uint speeds = 0;
if (IS_CNA_CAPABLE(ha)) if (IS_CNA_CAPABLE(ha))
return FDMI_PORT_SPEED_10GB; return FDMI_PORT_SPEED_10GB;
if (IS_QLA28XX(ha) || IS_QLA27XX(ha)) { if (IS_QLA28XX(ha) || IS_QLA27XX(ha)) {
uint speeds = 0;
if (ha->max_supported_speed == 2) { if (ha->max_supported_speed == 2) {
if (ha->min_supported_speed <= 6) if (ha->min_supported_speed <= 6)
speeds |= FDMI_PORT_SPEED_64GB; speeds |= FDMI_PORT_SPEED_64GB;
...@@ -1536,9 +1536,16 @@ qla25xx_fdmi_port_speed_capability(struct qla_hw_data *ha) ...@@ -1536,9 +1536,16 @@ qla25xx_fdmi_port_speed_capability(struct qla_hw_data *ha)
} }
return speeds; return speeds;
} }
if (IS_QLA2031(ha)) if (IS_QLA2031(ha)) {
return FDMI_PORT_SPEED_16GB|FDMI_PORT_SPEED_8GB| if ((ha->pdev->subsystem_vendor == 0x103C) &&
FDMI_PORT_SPEED_4GB; (ha->pdev->subsystem_device == 0x8002)) {
speeds = FDMI_PORT_SPEED_16GB;
} else {
speeds = FDMI_PORT_SPEED_16GB|FDMI_PORT_SPEED_8GB|
FDMI_PORT_SPEED_4GB;
}
return speeds;
}
if (IS_QLA25XX(ha)) if (IS_QLA25XX(ha))
return FDMI_PORT_SPEED_8GB|FDMI_PORT_SPEED_4GB| return FDMI_PORT_SPEED_8GB|FDMI_PORT_SPEED_4GB|
FDMI_PORT_SPEED_2GB|FDMI_PORT_SPEED_1GB; FDMI_PORT_SPEED_2GB|FDMI_PORT_SPEED_1GB;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment