Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] qla2xxx: Correct PRLI failure response code handling.

This patch fixes an issue which causes the firmware to fail with a
'PRLI failed' status code (iop1 = 405). This status triggers the
driver to fall into an incorrect code-path which does not attempt
a login retry.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Andrew Vasquez and committed by
James Bottomley
9dac0d9a 170babc3

-6
-6
drivers/scsi/qla2xxx/qla_isr.c
··· 1240 1240 case LSC_SCODE_NPORT_USED: 1241 1241 data[0] = MBS_LOOP_ID_USED; 1242 1242 break; 1243 - case LSC_SCODE_CMD_FAILED: 1244 - if ((iop[1] & 0xff) == 0x05) { 1245 - data[0] = MBS_NOT_LOGGED_IN; 1246 - break; 1247 - } 1248 - /* Fall through. */ 1249 1243 default: 1250 1244 data[0] = MBS_COMMAND_ERROR; 1251 1245 break;