Commit 0ca55938 authored by Himanshu Madhani's avatar Himanshu Madhani Committed by Nicholas Bellinger

qla2xxx: Remove unused reverse_ini_mode

With support for dual mode in the driver, this mode becomes
dead code. Remove reverse_ini_mode from code.
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent ead03855
...@@ -3237,7 +3237,6 @@ struct qlt_hw_data { ...@@ -3237,7 +3237,6 @@ struct qlt_hw_data {
/* Protected by hw lock */ /* Protected by hw lock */
uint32_t enable_class_2:1; uint32_t enable_class_2:1;
uint32_t enable_explicit_conf:1; uint32_t enable_explicit_conf:1;
uint32_t ini_mode_force_reverse:1;
uint32_t node_name_set:1; uint32_t node_name_set:1;
dma_addr_t atio_dma; /* Physical address. */ dma_addr_t atio_dma; /* Physical address. */
......
...@@ -5858,8 +5858,6 @@ EXPORT_SYMBOL(qlt_lport_deregister); ...@@ -5858,8 +5858,6 @@ EXPORT_SYMBOL(qlt_lport_deregister);
/* Must be called under HW lock */ /* Must be called under HW lock */
static void qlt_set_mode(struct scsi_qla_host *vha) static void qlt_set_mode(struct scsi_qla_host *vha)
{ {
struct qla_hw_data *ha = vha->hw;
switch (ql2x_ini_mode) { switch (ql2x_ini_mode) {
case QLA2XXX_INI_MODE_DISABLED: case QLA2XXX_INI_MODE_DISABLED:
case QLA2XXX_INI_MODE_EXCLUSIVE: case QLA2XXX_INI_MODE_EXCLUSIVE:
...@@ -5874,16 +5872,11 @@ static void qlt_set_mode(struct scsi_qla_host *vha) ...@@ -5874,16 +5872,11 @@ static void qlt_set_mode(struct scsi_qla_host *vha)
default: default:
break; break;
} }
if (ha->tgt.ini_mode_force_reverse)
qla_reverse_ini_mode(vha);
} }
/* Must be called under HW lock */ /* Must be called under HW lock */
static void qlt_clear_mode(struct scsi_qla_host *vha) static void qlt_clear_mode(struct scsi_qla_host *vha)
{ {
struct qla_hw_data *ha = vha->hw;
switch (ql2x_ini_mode) { switch (ql2x_ini_mode) {
case QLA2XXX_INI_MODE_DISABLED: case QLA2XXX_INI_MODE_DISABLED:
vha->host->active_mode = MODE_UNKNOWN; vha->host->active_mode = MODE_UNKNOWN;
...@@ -5898,9 +5891,6 @@ static void qlt_clear_mode(struct scsi_qla_host *vha) ...@@ -5898,9 +5891,6 @@ static void qlt_clear_mode(struct scsi_qla_host *vha)
default: default:
break; break;
} }
if (ha->tgt.ini_mode_force_reverse)
qla_reverse_ini_mode(vha);
} }
/* /*
......
...@@ -995,14 +995,6 @@ static inline bool qla_dual_mode_enabled(struct scsi_qla_host *ha) ...@@ -995,14 +995,6 @@ static inline bool qla_dual_mode_enabled(struct scsi_qla_host *ha)
return (ha->host->active_mode == MODE_DUAL); return (ha->host->active_mode == MODE_DUAL);
} }
static inline void qla_reverse_ini_mode(struct scsi_qla_host *ha)
{
if (ha->host->active_mode & MODE_INITIATOR)
ha->host->active_mode &= ~MODE_INITIATOR;
else
ha->host->active_mode |= MODE_INITIATOR;
}
static inline uint32_t sid_to_key(const uint8_t *s_id) static inline uint32_t sid_to_key(const uint8_t *s_id)
{ {
uint32_t key; uint32_t key;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment