diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-03-05 22:36:56 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-07 02:31:42 -0500 |
commit | 816e49b8ed209e5e08d4c43359635cbca17e7196 (patch) | |
tree | 4e76c1555c8df9b37a50d11f6c50c76d447e84a9 /drivers/scsi | |
parent | 2993cc71d1bff61999ade7f2b6b3ea2dd1e2c8d9 (diff) |
[SCSI] bfa: IOC recovery fix in fcmode.
ioc_recover failed to work in fcmode.
Fixed the code to initialize the ioc_regs.err_set during the
notify_hbfail.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/bfa/bfa_ioc_ct.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc_ct.c b/drivers/scsi/bfa/bfa_ioc_ct.c index 0430edd2e011..469da95aedf3 100644 --- a/drivers/scsi/bfa/bfa_ioc_ct.c +++ b/drivers/scsi/bfa/bfa_ioc_ct.c | |||
@@ -171,10 +171,14 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc_s *ioc) | |||
171 | static void | 171 | static void |
172 | bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc) | 172 | bfa_ioc_ct_notify_hbfail(struct bfa_ioc_s *ioc) |
173 | { | 173 | { |
174 | 174 | if (ioc->cna) { | |
175 | bfa_reg_write(ioc->ioc_regs.ll_halt, __FW_INIT_HALT_P); | 175 | bfa_reg_write(ioc->ioc_regs.ll_halt, __FW_INIT_HALT_P); |
176 | /* Wait for halt to take effect */ | 176 | /* Wait for halt to take effect */ |
177 | bfa_reg_read(ioc->ioc_regs.ll_halt); | 177 | bfa_reg_read(ioc->ioc_regs.ll_halt); |
178 | } else { | ||
179 | bfa_reg_write(ioc->ioc_regs.err_set, __PSS_ERR_STATUS_SET); | ||
180 | bfa_reg_read(ioc->ioc_regs.err_set); | ||
181 | } | ||
178 | } | 182 | } |
179 | 183 | ||
180 | /** | 184 | /** |
@@ -254,6 +258,11 @@ bfa_ioc_ct_reg_init(struct bfa_ioc_s *ioc) | |||
254 | */ | 258 | */ |
255 | ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START); | 259 | ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START); |
256 | ioc->ioc_regs.smem_pg0 = BFI_IOC_SMEM_PG0_CT; | 260 | ioc->ioc_regs.smem_pg0 = BFI_IOC_SMEM_PG0_CT; |
261 | |||
262 | /* | ||
263 | * err set reg : for notification of hb failure in fcmode | ||
264 | */ | ||
265 | ioc->ioc_regs.err_set = (rb + ERR_SET_REG); | ||
257 | } | 266 | } |
258 | 267 | ||
259 | /** | 268 | /** |