[SCSI] qla2xxx: Limit iIDMA speed adjustments.

Do not adjust the iIDMA speed on ports which have a faster
link-speed than the HBA itself.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Andrew Vasquez 2007-09-20 14:07:34 -07:00 коммит произвёл James Bottomley
Родитель 87f27015b8
Коммит 39bd962269
1 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -2132,15 +2132,9 @@ qla2x00_iidma_fcport(scsi_qla_host_t *ha, fc_port_t *fcport)
if (!IS_IIDMA_CAPABLE(ha)) if (!IS_IIDMA_CAPABLE(ha))
return; return;
if (fcport->fp_speed == PORT_SPEED_UNKNOWN) { if (fcport->fp_speed == PORT_SPEED_UNKNOWN ||
DEBUG2(printk("scsi(%ld): %02x%02x%02x%02x%02x%02x%02x%02x -- " fcport->fp_speed > ha->link_data_rate)
"unsupported FM port operating speed.\n",
ha->host_no, fcport->port_name[0], fcport->port_name[1],
fcport->port_name[2], fcport->port_name[3],
fcport->port_name[4], fcport->port_name[5],
fcport->port_name[6], fcport->port_name[7]));
return; return;
}
rval = qla2x00_set_idma_speed(ha, fcport->loop_id, fcport->fp_speed, rval = qla2x00_set_idma_speed(ha, fcport->loop_id, fcport->fp_speed,
mb); mb);