diff options
author | James Smart <James.Smart@Emulex.Com> | 2009-05-22 14:53:12 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-08 12:26:01 -0400 |
commit | f4b4c68f74dcd5da03df851090cad28ad4e8d7cc (patch) | |
tree | c9ae4867a01cbdb11c008c23830ddd7c7220bee8 /drivers/scsi/lpfc/lpfc_sli.c | |
parent | d8e93df13c8f7bde45a7756944aab528c58df4cf (diff) |
[SCSI] lpfc 8.3.2 : Miscellaneous Changes
Miscellaneous Changes:
- Convert from SLI2_ACTIVE flag to more correct SLI_ACTIVE (generic) flag
- Reposition log verbose messaging definitions
- Update naming for vpi object name from vport slang name
- Handle deferred error attention condition
- Add 10G link support
- Small bug fixup
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index a53c267a067b..ff04daf18f48 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c | |||
@@ -3272,7 +3272,7 @@ void lpfc_reset_barrier(struct lpfc_hba *phba) | |||
3272 | mdelay(1); | 3272 | mdelay(1); |
3273 | 3273 | ||
3274 | if (readl(resp_buf + 1) != ~(BARRIER_TEST_PATTERN)) { | 3274 | if (readl(resp_buf + 1) != ~(BARRIER_TEST_PATTERN)) { |
3275 | if (phba->sli.sli_flag & LPFC_SLI2_ACTIVE || | 3275 | if (phba->sli.sli_flag & LPFC_SLI_ACTIVE || |
3276 | phba->pport->stopped) | 3276 | phba->pport->stopped) |
3277 | goto restore_hc; | 3277 | goto restore_hc; |
3278 | else | 3278 | else |
@@ -3353,7 +3353,9 @@ lpfc_sli_brdkill(struct lpfc_hba *phba) | |||
3353 | return 1; | 3353 | return 1; |
3354 | } | 3354 | } |
3355 | 3355 | ||
3356 | psli->sli_flag &= ~LPFC_SLI2_ACTIVE; | 3356 | spin_lock_irq(&phba->hbalock); |
3357 | psli->sli_flag &= ~LPFC_SLI_ACTIVE; | ||
3358 | spin_unlock_irq(&phba->hbalock); | ||
3357 | 3359 | ||
3358 | mempool_free(pmb, phba->mbox_mem_pool); | 3360 | mempool_free(pmb, phba->mbox_mem_pool); |
3359 | 3361 | ||
@@ -4643,7 +4645,7 @@ lpfc_mbox_timeout_handler(struct lpfc_hba *phba) | |||
4643 | spin_unlock_irq(&phba->pport->work_port_lock); | 4645 | spin_unlock_irq(&phba->pport->work_port_lock); |
4644 | spin_lock_irq(&phba->hbalock); | 4646 | spin_lock_irq(&phba->hbalock); |
4645 | phba->link_state = LPFC_LINK_UNKNOWN; | 4647 | phba->link_state = LPFC_LINK_UNKNOWN; |
4646 | psli->sli_flag &= ~LPFC_SLI2_ACTIVE; | 4648 | psli->sli_flag &= ~LPFC_SLI_ACTIVE; |
4647 | spin_unlock_irq(&phba->hbalock); | 4649 | spin_unlock_irq(&phba->hbalock); |
4648 | 4650 | ||
4649 | pring = &psli->ring[psli->fcp_ring]; | 4651 | pring = &psli->ring[psli->fcp_ring]; |