diff options
| author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2007-09-20 17:07:34 -0400 |
|---|---|---|
| committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:50:40 -0400 |
| commit | 39bd962269f0f10ba890aea4769693f8f9a3cb47 (patch) | |
| tree | df69770da2c3bc8f423c31745de2a228433a17d3 /drivers | |
| parent | 87f27015b8d9f19d6de295e2316cff7960c9950b (diff) | |
[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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index e449f4807bb1..191dafd89be0 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
| @@ -2132,15 +2132,9 @@ qla2x00_iidma_fcport(scsi_qla_host_t *ha, fc_port_t *fcport) | |||
| 2132 | if (!IS_IIDMA_CAPABLE(ha)) | 2132 | if (!IS_IIDMA_CAPABLE(ha)) |
| 2133 | return; | 2133 | return; |
| 2134 | 2134 | ||
| 2135 | if (fcport->fp_speed == PORT_SPEED_UNKNOWN) { | 2135 | if (fcport->fp_speed == PORT_SPEED_UNKNOWN || |
| 2136 | DEBUG2(printk("scsi(%ld): %02x%02x%02x%02x%02x%02x%02x%02x -- " | 2136 | fcport->fp_speed > ha->link_data_rate) |
| 2137 | "unsupported FM port operating speed.\n", | ||
| 2138 | ha->host_no, fcport->port_name[0], fcport->port_name[1], | ||
| 2139 | fcport->port_name[2], fcport->port_name[3], | ||
| 2140 | fcport->port_name[4], fcport->port_name[5], | ||
| 2141 | fcport->port_name[6], fcport->port_name[7])); | ||
| 2142 | return; | 2137 | return; |
| 2143 | } | ||
| 2144 | 2138 | ||
| 2145 | rval = qla2x00_set_idma_speed(ha, fcport->loop_id, fcport->fp_speed, | 2139 | rval = qla2x00_set_idma_speed(ha, fcport->loop_id, fcport->fp_speed, |
| 2146 | mb); | 2140 | mb); |
