diff options
author | brking@us.ibm.com <brking@us.ibm.com> | 2005-11-01 18:02:55 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-11-06 14:12:56 -0500 |
commit | dfed823eabf545795f04c8b5164d46a73c5b58ea (patch) | |
tree | 3f96a873d33df5fa748edac96bf95c96f9785ac0 /drivers/scsi/ipr.h | |
parent | d71a8b0cba62eada61edce86670f8d63a1bef0c8 (diff) |
[SCSI] ipr: Better handle failure of adapter bringup commands
Some new ipr adapters do not support some of the initialization
commands currently sent to it from the driver. Handle these
commands failing and continue on with the adapter initialization.
Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 2f18284b6004..637b891eb50f 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -84,6 +84,7 @@ | |||
84 | #define IPR_IOASC_HW_DEV_BUS_STATUS 0x04448500 | 84 | #define IPR_IOASC_HW_DEV_BUS_STATUS 0x04448500 |
85 | #define IPR_IOASC_IOASC_MASK 0xFFFFFF00 | 85 | #define IPR_IOASC_IOASC_MASK 0xFFFFFF00 |
86 | #define IPR_IOASC_SCSI_STATUS_MASK 0x000000FF | 86 | #define IPR_IOASC_SCSI_STATUS_MASK 0x000000FF |
87 | #define IPR_IOASC_IR_INVALID_REQ_TYPE_OR_PKT 0x05240000 | ||
87 | #define IPR_IOASC_IR_RESOURCE_HANDLE 0x05250000 | 88 | #define IPR_IOASC_IR_RESOURCE_HANDLE 0x05250000 |
88 | #define IPR_IOASC_IR_NO_CMDS_TO_2ND_IOA 0x05258100 | 89 | #define IPR_IOASC_IR_NO_CMDS_TO_2ND_IOA 0x05258100 |
89 | #define IPR_IOASA_IR_DUAL_IOA_DISABLED 0x052C8000 | 90 | #define IPR_IOASA_IR_DUAL_IOA_DISABLED 0x052C8000 |
@@ -1031,6 +1032,7 @@ struct ipr_cmnd { | |||
1031 | struct timer_list timer; | 1032 | struct timer_list timer; |
1032 | void (*done) (struct ipr_cmnd *); | 1033 | void (*done) (struct ipr_cmnd *); |
1033 | int (*job_step) (struct ipr_cmnd *); | 1034 | int (*job_step) (struct ipr_cmnd *); |
1035 | int (*job_step_failed) (struct ipr_cmnd *); | ||
1034 | u16 cmd_index; | 1036 | u16 cmd_index; |
1035 | u8 sense_buffer[SCSI_SENSE_BUFFERSIZE]; | 1037 | u8 sense_buffer[SCSI_SENSE_BUFFERSIZE]; |
1036 | dma_addr_t sense_buffer_dma; | 1038 | dma_addr_t sense_buffer_dma; |