提交 f94097ed 编写于 作者: A andrew.vasquez@qlogic.com 提交者: James Bottomley

[SCSI] qla2xxx: Correct swing/emphasis settings for ISP24XX.

Swing/emphasis settings in NVRAM were not being honoured due
to the driver not converting the serial-link options from LE
to host-endian format.
Signed-off-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 c9d02acf
...@@ -1014,11 +1014,13 @@ qla24xx_update_fw_options(scsi_qla_host_t *ha) ...@@ -1014,11 +1014,13 @@ qla24xx_update_fw_options(scsi_qla_host_t *ha)
int rval; int rval;
/* Update Serial Link options. */ /* Update Serial Link options. */
if ((ha->fw_seriallink_options24[0] & BIT_0) == 0) if ((le16_to_cpu(ha->fw_seriallink_options24[0]) & BIT_0) == 0)
return; return;
rval = qla2x00_set_serdes_params(ha, ha->fw_seriallink_options24[1], rval = qla2x00_set_serdes_params(ha,
ha->fw_seriallink_options24[2], ha->fw_seriallink_options24[3]); le16_to_cpu(ha->fw_seriallink_options24[1]),
le16_to_cpu(ha->fw_seriallink_options24[2]),
le16_to_cpu(ha->fw_seriallink_options24[3]));
if (rval != QLA_SUCCESS) { if (rval != QLA_SUCCESS) {
qla_printk(KERN_WARNING, ha, qla_printk(KERN_WARNING, ha,
"Unable to update Serial Link options (%x).\n", rval); "Unable to update Serial Link options (%x).\n", rval);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册