Skip to content

Commit c0eb875

Browse files
avasquez01James Bottomley
authored andcommitted
[SCSI] qla2xxx: Correct setting of FDMI supported/current port speed.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent bc8fb3c commit c0eb875

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/scsi/qla2xxx/qla_gs.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,9 +1530,9 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha)
15301530
eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED);
15311531
eiter->len = __constant_cpu_to_be16(4 + 4);
15321532
if (IS_QLA25XX(ha))
1533-
eiter->a.sup_speed = __constant_cpu_to_be32(4);
1534-
else if (IS_QLA24XX(ha))
15351533
eiter->a.sup_speed = __constant_cpu_to_be32(8);
1534+
else if (IS_QLA24XX(ha))
1535+
eiter->a.sup_speed = __constant_cpu_to_be32(4);
15361536
else if (IS_QLA23XX(ha))
15371537
eiter->a.sup_speed = __constant_cpu_to_be32(2);
15381538
else
@@ -1554,9 +1554,6 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha)
15541554
eiter->a.cur_speed = __constant_cpu_to_be32(2);
15551555
break;
15561556
case 3:
1557-
eiter->a.cur_speed = __constant_cpu_to_be32(8);
1558-
break;
1559-
case 4:
15601557
eiter->a.cur_speed = __constant_cpu_to_be32(4);
15611558
break;
15621559
}

0 commit comments

Comments
 (0)