diff options
author | Lalit Chandivade <lalit.chandivade@qlogic.com> | 2009-03-26 11:49:17 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-03 10:22:49 -0400 |
commit | 6e181be508cf81fda4407b4689befeb7e4149607 (patch) | |
tree | 27765812d249113374e9fdf9267f3043811fcb2e /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | 2533cf671da0603129c8af9c31c735e1d2654e20 (diff) |
[SCSI] qla2xxx: Add reset capabilities for application support.
Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com>
Additional cleanups and
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 2bc08d3b3537..dc5e5d9530c1 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -3325,3 +3325,29 @@ qla81xx_fac_erase_sector(scsi_qla_host_t *vha, uint32_t start, uint32_t finish) | |||
3325 | 3325 | ||
3326 | return rval; | 3326 | return rval; |
3327 | } | 3327 | } |
3328 | |||
3329 | int | ||
3330 | qla81xx_restart_mpi_firmware(scsi_qla_host_t *vha) | ||
3331 | { | ||
3332 | int rval = 0; | ||
3333 | mbx_cmd_t mc; | ||
3334 | mbx_cmd_t *mcp = &mc; | ||
3335 | |||
3336 | DEBUG11(printk("%s(%ld): entered.\n", __func__, vha->host_no)); | ||
3337 | |||
3338 | mcp->mb[0] = MBC_RESTART_MPI_FW; | ||
3339 | mcp->out_mb = MBX_0; | ||
3340 | mcp->in_mb = MBX_0|MBX_1; | ||
3341 | mcp->tov = MBX_TOV_SECONDS; | ||
3342 | mcp->flags = 0; | ||
3343 | rval = qla2x00_mailbox_command(vha, mcp); | ||
3344 | |||
3345 | if (rval != QLA_SUCCESS) { | ||
3346 | DEBUG2_3_11(printk("%s(%ld): failed=%x mb[0]=0x%x mb[1]=0x%x.\n", | ||
3347 | __func__, vha->host_no, rval, mcp->mb[0], mcp->mb[1])); | ||
3348 | } else { | ||
3349 | DEBUG11(printk("%s(%ld): done.\n", __func__, vha->host_no)); | ||
3350 | } | ||
3351 | |||
3352 | return rval; | ||
3353 | } | ||