aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_mbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_mbx.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 284eb847e50f..953156faafdb 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -984,58 +984,6 @@ qla2x00_abort_target(fc_port_t *fcport)
984#endif 984#endif
985 985
986/* 986/*
987 * qla2x00_target_reset
988 * Issue target reset mailbox command.
989 *
990 * Input:
991 * ha = adapter block pointer.
992 * TARGET_QUEUE_LOCK must be released.
993 * ADAPTER_STATE_LOCK must be released.
994 *
995 * Returns:
996 * qla2x00 local function return status code.
997 *
998 * Context:
999 * Kernel context.
1000 */
1001int
1002qla2x00_target_reset(scsi_qla_host_t *ha, struct fc_port *fcport)
1003{
1004 int rval;
1005 mbx_cmd_t mc;
1006 mbx_cmd_t *mcp = &mc;
1007
1008 DEBUG11(printk("qla2x00_target_reset(%ld): entered.\n", ha->host_no);)
1009
1010 if (atomic_read(&fcport->state) != FCS_ONLINE)
1011 return 0;
1012
1013 mcp->mb[0] = MBC_TARGET_RESET;
1014 if (HAS_EXTENDED_IDS(ha))
1015 mcp->mb[1] = fcport->loop_id;
1016 else
1017 mcp->mb[1] = fcport->loop_id << 8;
1018 mcp->mb[2] = ha->loop_reset_delay;
1019 mcp->out_mb = MBX_2|MBX_1|MBX_0;
1020 mcp->in_mb = MBX_0;
1021 mcp->tov = 30;
1022 mcp->flags = 0;
1023 rval = qla2x00_mailbox_command(ha, mcp);
1024
1025 if (rval != QLA_SUCCESS) {
1026 /*EMPTY*/
1027 DEBUG2_3_11(printk("qla2x00_target_reset(%ld): failed=%x.\n",
1028 ha->host_no, rval);)
1029 } else {
1030 /*EMPTY*/
1031 DEBUG11(printk("qla2x00_target_reset(%ld): done.\n",
1032 ha->host_no);)
1033 }
1034
1035 return rval;
1036}
1037
1038/*
1039 * qla2x00_get_adapter_id 987 * qla2x00_get_adapter_id
1040 * Get adapter ID and topology. 988 * Get adapter ID and topology.
1041 * 989 *