diff options
author | andrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com> | 2006-03-09 17:27:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 10:40:37 -0500 |
commit | 9a52a57cb9d247fc1cea018fd3f4421f8fd6642a (patch) | |
tree | 1ceafa260a18a02485973cd0bed9b971f558910d /drivers/scsi/qla2xxx/qla_init.c | |
parent | 4a59f71d7f0d6dd433fd509584352cdd7c62e877 (diff) |
[SCSI] qla2xxx: Correct FCAL login retry logic for ISP24xx.
ISP24XX FW does not support Mbx 0x74 ie Login Local Port.
Added the equivalent code for ISP24XX ie to relogin in non
fabric case for ISP24XX use login iocb.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index ebc7c2498067..89a3fc0595bb 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -2888,13 +2888,13 @@ qla2x00_fabric_login(scsi_qla_host_t *ha, fc_port_t *fcport, | |||
2888 | * 3 - Fatal error | 2888 | * 3 - Fatal error |
2889 | */ | 2889 | */ |
2890 | int | 2890 | int |
2891 | qla2x00_local_device_login(scsi_qla_host_t *ha, uint16_t loop_id) | 2891 | qla2x00_local_device_login(scsi_qla_host_t *ha, fc_port_t *fcport) |
2892 | { | 2892 | { |
2893 | int rval; | 2893 | int rval; |
2894 | uint16_t mb[MAILBOX_REGISTER_COUNT]; | 2894 | uint16_t mb[MAILBOX_REGISTER_COUNT]; |
2895 | 2895 | ||
2896 | memset(mb, 0, sizeof(mb)); | 2896 | memset(mb, 0, sizeof(mb)); |
2897 | rval = qla2x00_login_local_device(ha, loop_id, mb, BIT_0); | 2897 | rval = qla2x00_login_local_device(ha, fcport, mb, BIT_0); |
2898 | if (rval == QLA_SUCCESS) { | 2898 | if (rval == QLA_SUCCESS) { |
2899 | /* Interrogate mailbox registers for any errors */ | 2899 | /* Interrogate mailbox registers for any errors */ |
2900 | if (mb[0] == MBS_COMMAND_ERROR) | 2900 | if (mb[0] == MBS_COMMAND_ERROR) |