aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r--drivers/scsi/ipr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 4fd6a3d81ffc..5b6ffe18bc7d 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -4473,6 +4473,9 @@ static void ipr_dump_ioasa(struct ipr_ioa_cfg *ioa_cfg,
4473 if (ioasa->ilid != 0) 4473 if (ioasa->ilid != 0)
4474 return; 4474 return;
4475 4475
4476 if (!ipr_is_gscsi(res))
4477 return;
4478
4476 if (ipr_error_table[error_index].log_ioasa == 0) 4479 if (ipr_error_table[error_index].log_ioasa == 0)
4477 return; 4480 return;
4478 } 4481 }
@@ -4632,11 +4635,11 @@ static void ipr_erp_start(struct ipr_ioa_cfg *ioa_cfg,
4632 return; 4635 return;
4633 } 4636 }
4634 4637
4635 if (ipr_is_gscsi(res)) 4638 if (!ipr_is_gscsi(res))
4636 ipr_dump_ioasa(ioa_cfg, ipr_cmd, res);
4637 else
4638 ipr_gen_sense(ipr_cmd); 4639 ipr_gen_sense(ipr_cmd);
4639 4640
4641 ipr_dump_ioasa(ioa_cfg, ipr_cmd, res);
4642
4640 switch (ioasc & IPR_IOASC_IOASC_MASK) { 4643 switch (ioasc & IPR_IOASC_IOASC_MASK) {
4641 case IPR_IOASC_ABORTED_CMD_TERM_BY_HOST: 4644 case IPR_IOASC_ABORTED_CMD_TERM_BY_HOST:
4642 if (ipr_is_naca_model(res)) 4645 if (ipr_is_naca_model(res))