diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-04-24 18:21:26 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-27 13:19:58 -0400 |
commit | 7e47e5ca184548341a82eeb2238ee3622c43cae1 (patch) | |
tree | f2e7c377aae3af48a29571aa4f6924d4a92cc17c /drivers/scsi | |
parent | 0c23b856581673c90aa619b1ab04127a7f90cea2 (diff) |
[SCSI] qla2xxx: Re-register FDMI information after a LIP.
Original code would (incorrectly) only re-register after a
loop-down condition. Also, FDMI registration should be enabled
by default.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 4 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 285479b62d8f..5d9a64a7879b 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -409,6 +409,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb) | |||
409 | } | 409 | } |
410 | 410 | ||
411 | set_bit(REGISTER_FC4_NEEDED, &ha->dpc_flags); | 411 | set_bit(REGISTER_FC4_NEEDED, &ha->dpc_flags); |
412 | set_bit(REGISTER_FDMI_NEEDED, &ha->dpc_flags); | ||
412 | 413 | ||
413 | ha->flags.management_server_logged_in = 0; | 414 | ha->flags.management_server_logged_in = 0; |
414 | qla2x00_post_aen_work(ha, FCH_EVT_LIP, mb[1]); | 415 | qla2x00_post_aen_work(ha, FCH_EVT_LIP, mb[1]); |
@@ -454,8 +455,6 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb) | |||
454 | 455 | ||
455 | ha->flags.management_server_logged_in = 0; | 456 | ha->flags.management_server_logged_in = 0; |
456 | ha->link_data_rate = PORT_SPEED_UNKNOWN; | 457 | ha->link_data_rate = PORT_SPEED_UNKNOWN; |
457 | if (ql2xfdmienable) | ||
458 | set_bit(REGISTER_FDMI_NEEDED, &ha->dpc_flags); | ||
459 | qla2x00_post_aen_work(ha, FCH_EVT_LINKDOWN, 0); | 458 | qla2x00_post_aen_work(ha, FCH_EVT_LINKDOWN, 0); |
460 | break; | 459 | break; |
461 | 460 | ||
@@ -511,6 +510,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint16_t *mb) | |||
511 | set_bit(RESET_MARKER_NEEDED, &ha->dpc_flags); | 510 | set_bit(RESET_MARKER_NEEDED, &ha->dpc_flags); |
512 | } | 511 | } |
513 | set_bit(REGISTER_FC4_NEEDED, &ha->dpc_flags); | 512 | set_bit(REGISTER_FC4_NEEDED, &ha->dpc_flags); |
513 | set_bit(REGISTER_FDMI_NEEDED, &ha->dpc_flags); | ||
514 | 514 | ||
515 | ha->flags.gpsc_supported = 1; | 515 | ha->flags.gpsc_supported = 1; |
516 | ha->flags.management_server_logged_in = 0; | 516 | ha->flags.management_server_logged_in = 0; |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 978d8bdb9b34..a7c20f88631b 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -67,7 +67,7 @@ static void qla2x00_free_device(scsi_qla_host_t *); | |||
67 | 67 | ||
68 | static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); | 68 | static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); |
69 | 69 | ||
70 | int ql2xfdmienable; | 70 | int ql2xfdmienable=1; |
71 | module_param(ql2xfdmienable, int, S_IRUGO|S_IRUSR); | 71 | module_param(ql2xfdmienable, int, S_IRUGO|S_IRUSR); |
72 | MODULE_PARM_DESC(ql2xfdmienable, | 72 | MODULE_PARM_DESC(ql2xfdmienable, |
73 | "Enables FDMI registratons " | 73 | "Enables FDMI registratons " |