scsi: qla2xxx: Fix iIDMA error
When switch responds with error for Get Port Speed Command (GPSC), driver should not proceed with telling FW about the speed of the remote port. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
9ba1cb25c1
Коммит
8d9bf0a9a2
|
@ -3272,7 +3272,7 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res)
|
|||
ql_dbg(ql_dbg_disc, vha, 0x2019,
|
||||
"GPSC command unsupported, disabling query.\n");
|
||||
ha->flags.gpsc_supported = 0;
|
||||
res = QLA_SUCCESS;
|
||||
goto done;
|
||||
}
|
||||
} else {
|
||||
switch (be16_to_cpu(ct_rsp->rsp.gpsc.speed)) {
|
||||
|
@ -3305,7 +3305,6 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res)
|
|||
be16_to_cpu(ct_rsp->rsp.gpsc.speeds),
|
||||
be16_to_cpu(ct_rsp->rsp.gpsc.speed));
|
||||
}
|
||||
done:
|
||||
memset(&ea, 0, sizeof(ea));
|
||||
ea.event = FCME_GPSC_DONE;
|
||||
ea.rc = res;
|
||||
|
@ -3313,6 +3312,7 @@ done:
|
|||
ea.sp = sp;
|
||||
qla2x00_fcport_event_handler(vha, &ea);
|
||||
|
||||
done:
|
||||
sp->free(sp);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче