aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorShyam Sundar <shyam.sundar@qlogic.com>2009-03-24 12:08:10 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 10:22:50 -0400
commitddb9b12632ab28460c281d50963bbe3eeda5984a (patch)
tree1031a93f6a1c850ba79026c1afbae5cfd3801e3d /drivers/scsi/qla2xxx/qla_init.c
parentd0c3eefae09e4c19d6da1ed2417e02d8377b1eb3 (diff)
[SCSI] qla2xxx: Cleanup unused flags and #defines.
General cleanup of extraneous/legacy crud. 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_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index a2747501fdde..d525808afc4e 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -72,7 +72,6 @@ qla2x00_initialize_adapter(scsi_qla_host_t *vha)
72 vha->dpc_flags = 0; 72 vha->dpc_flags = 0;
73 vha->flags.management_server_logged_in = 0; 73 vha->flags.management_server_logged_in = 0;
74 vha->marker_needed = 0; 74 vha->marker_needed = 0;
75 ha->mbx_flags = 0;
76 ha->isp_abort_cnt = 0; 75 ha->isp_abort_cnt = 0;
77 ha->beacon_blink_led = 0; 76 ha->beacon_blink_led = 0;
78 set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags); 77 set_bit(REGISTER_FDMI_NEEDED, &vha->dpc_flags);
@@ -515,7 +514,6 @@ qla2x00_reset_chip(scsi_qla_host_t *vha)
515static inline void 514static inline void
516qla24xx_reset_risc(scsi_qla_host_t *vha) 515qla24xx_reset_risc(scsi_qla_host_t *vha)
517{ 516{
518 int hw_evt = 0;
519 unsigned long flags = 0; 517 unsigned long flags = 0;
520 struct qla_hw_data *ha = vha->hw; 518 struct qla_hw_data *ha = vha->hw;
521 struct device_reg_24xx __iomem *reg = &ha->iobase->isp24; 519 struct device_reg_24xx __iomem *reg = &ha->iobase->isp24;
@@ -545,8 +543,6 @@ qla24xx_reset_risc(scsi_qla_host_t *vha)
545 d2 = (uint32_t) RD_REG_WORD(&reg->mailbox0); 543 d2 = (uint32_t) RD_REG_WORD(&reg->mailbox0);
546 barrier(); 544 barrier();
547 } 545 }
548 if (cnt == 0)
549 hw_evt = 1;
550 546
551 /* Wait for soft-reset to complete. */ 547 /* Wait for soft-reset to complete. */
552 d2 = RD_REG_DWORD(&reg->ctrl_status); 548 d2 = RD_REG_DWORD(&reg->ctrl_status);
@@ -2011,7 +2007,6 @@ qla2x00_alloc_fcport(scsi_qla_host_t *vha, gfp_t flags)
2011 fcport->port_type = FCT_UNKNOWN; 2007 fcport->port_type = FCT_UNKNOWN;
2012 fcport->loop_id = FC_NO_LOOP_ID; 2008 fcport->loop_id = FC_NO_LOOP_ID;
2013 atomic_set(&fcport->state, FCS_UNCONFIGURED); 2009 atomic_set(&fcport->state, FCS_UNCONFIGURED);
2014 fcport->flags = FCF_RLC_SUPPORT;
2015 fcport->supported_classes = FC_COS_UNSPECIFIED; 2010 fcport->supported_classes = FC_COS_UNSPECIFIED;
2016 2011
2017 return fcport; 2012 return fcport;
@@ -2193,7 +2188,6 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha)
2193 vha->host_no, fcport->loop_id)); 2188 vha->host_no, fcport->loop_id));
2194 2189
2195 atomic_set(&fcport->state, FCS_DEVICE_LOST); 2190 atomic_set(&fcport->state, FCS_DEVICE_LOST);
2196 fcport->flags &= ~FCF_FARP_DONE;
2197 } 2191 }
2198 } 2192 }
2199 2193
@@ -2250,8 +2244,7 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha)
2250 WWN_SIZE)) 2244 WWN_SIZE))
2251 continue; 2245 continue;
2252 2246
2253 fcport->flags &= ~(FCF_FABRIC_DEVICE | 2247 fcport->flags &= ~FCF_FABRIC_DEVICE;
2254 FCF_PERSISTENT_BOUND);
2255 fcport->loop_id = new_fcport->loop_id; 2248 fcport->loop_id = new_fcport->loop_id;
2256 fcport->port_type = new_fcport->port_type; 2249 fcport->port_type = new_fcport->port_type;
2257 fcport->d_id.b24 = new_fcport->d_id.b24; 2250 fcport->d_id.b24 = new_fcport->d_id.b24;
@@ -2264,7 +2257,6 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha)
2264 2257
2265 if (!found) { 2258 if (!found) {
2266 /* New device, add to fcports list. */ 2259 /* New device, add to fcports list. */
2267 new_fcport->flags &= ~FCF_PERSISTENT_BOUND;
2268 if (vha->vp_idx) { 2260 if (vha->vp_idx) {
2269 new_fcport->vha = vha; 2261 new_fcport->vha = vha;
2270 new_fcport->vp_idx = vha->vp_idx; 2262 new_fcport->vp_idx = vha->vp_idx;
@@ -2297,11 +2289,6 @@ cleanup_allocation:
2297 "rval=%x\n", vha->host_no, rval)); 2289 "rval=%x\n", vha->host_no, rval));
2298 } 2290 }
2299 2291
2300 if (found_devs) {
2301 vha->device_flags |= DFLG_LOCAL_DEVICES;
2302 vha->device_flags &= ~DFLG_RETRY_LOCAL_DEVICES;
2303 }
2304
2305 return (rval); 2292 return (rval);
2306} 2293}
2307 2294
@@ -2787,7 +2774,6 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha,
2787 fcport->loop_id = FC_NO_LOOP_ID; 2774 fcport->loop_id = FC_NO_LOOP_ID;
2788 fcport->flags |= (FCF_FABRIC_DEVICE | 2775 fcport->flags |= (FCF_FABRIC_DEVICE |
2789 FCF_LOGIN_NEEDED); 2776 FCF_LOGIN_NEEDED);
2790 fcport->flags &= ~FCF_PERSISTENT_BOUND;
2791 break; 2777 break;
2792 } 2778 }
2793 2779
@@ -2830,9 +2816,6 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha,
2830 kfree(swl); 2816 kfree(swl);
2831 kfree(new_fcport); 2817 kfree(new_fcport);
2832 2818
2833 if (!list_empty(new_fcports))
2834 vha->device_flags |= DFLG_FABRIC_DEVICES;
2835
2836 return (rval); 2819 return (rval);
2837} 2820}
2838 2821
@@ -3015,7 +2998,6 @@ qla2x00_device_resync(scsi_qla_host_t *vha)
3015 0, 0); 2998 0, 0);
3016 } 2999 }
3017 } 3000 }
3018 fcport->flags &= ~FCF_FARP_DONE;
3019 } 3001 }
3020 } 3002 }
3021 return (rval); 3003 return (rval);