diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gs.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gs.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index e393c848ea66..b06cbb8580d3 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c | |||
@@ -1532,7 +1532,11 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha) | |||
1532 | eiter = (struct ct_fdmi_port_attr *) (entries + size); | 1532 | eiter = (struct ct_fdmi_port_attr *) (entries + size); |
1533 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); | 1533 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); |
1534 | eiter->len = __constant_cpu_to_be16(4 + 4); | 1534 | eiter->len = __constant_cpu_to_be16(4 + 4); |
1535 | if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) | 1535 | if (IS_QLA25XX(ha)) |
1536 | eiter->a.sup_speed = __constant_cpu_to_be32( | ||
1537 | FDMI_PORT_SPEED_1GB|FDMI_PORT_SPEED_2GB| | ||
1538 | FDMI_PORT_SPEED_4GB|FDMI_PORT_SPEED_8GB); | ||
1539 | else if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) | ||
1536 | eiter->a.sup_speed = __constant_cpu_to_be32( | 1540 | eiter->a.sup_speed = __constant_cpu_to_be32( |
1537 | FDMI_PORT_SPEED_1GB|FDMI_PORT_SPEED_2GB| | 1541 | FDMI_PORT_SPEED_1GB|FDMI_PORT_SPEED_2GB| |
1538 | FDMI_PORT_SPEED_4GB); | 1542 | FDMI_PORT_SPEED_4GB); |
@@ -1564,6 +1568,10 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha) | |||
1564 | eiter->a.cur_speed = | 1568 | eiter->a.cur_speed = |
1565 | __constant_cpu_to_be32(FDMI_PORT_SPEED_4GB); | 1569 | __constant_cpu_to_be32(FDMI_PORT_SPEED_4GB); |
1566 | break; | 1570 | break; |
1571 | case PORT_SPEED_8GB: | ||
1572 | eiter->a.cur_speed = | ||
1573 | __constant_cpu_to_be32(FDMI_PORT_SPEED_8GB); | ||
1574 | break; | ||
1567 | default: | 1575 | default: |
1568 | eiter->a.cur_speed = | 1576 | eiter->a.cur_speed = |
1569 | __constant_cpu_to_be32(FDMI_PORT_SPEED_UNKNOWN); | 1577 | __constant_cpu_to_be32(FDMI_PORT_SPEED_UNKNOWN); |